Skip to content
Discussion options

You must be logged in to vote

Hi @tchardin, this is mentioned in the docs but macros can't see other macro generated code, and so #Preview can't see Draft. You can either use the non-macro PreviewProvider or you can define a little define helpers outside of the macro that are called from the macro.

FWIW it seems almost certainly like a bug that #Preview has this limitation, but not sure if it will ever be fixed.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tchardin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants