-
|
A typst source such as this cannot be converted to Pandoc AST: #context {
if target() == "html" {
[HTML]
} else {
[Not HTML]
}
}Presumably this is because Pandoc attempts to evaluate the content of the Context e -> do
evalExpr e -- TODO for now we just ignore "context"This also occurs any time a Is there a way to write a filter to completely ignore the contents of a I'm not sure if this is possible since no AST is generated to filter upon: $ pandoc -s -t native test.typ
"test.typ" (line 3, column 2):
Identifier "target" not foundIf filtering isn't possible in this scenario, I'll try using pre-pandoc makefile directives instead. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
No - the problem is in the parsing phase, and filters are applied after parsing succeeds. |
Beta Was this translation helpful? Give feedback.
No - the problem is in the parsing phase, and filters are applied after parsing succeeds.