I’ve switched to a different approach now. But in principle, the problem is that I always target both LaTeX and HTML. With the latter, I don’t want to have the empty braces.

Example:

INPUT: foo\bar{}baz
AST: [Para [Str "foo",RawInline (Format "tex") "\\bar",Str "{}baz"]]

Here, I can’t use my own Lua filter to implement \bar{} for HTML, because that filter will miss the empty braces.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5878e33c-4f91-46ee-9b78-b610b6a484f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.