Dear all,
I have a use case where I would like to be able to add my own element to the pandoc AST such that I can use it in a panflute
filter. This would be an inline element emulating LaTeX’s \gls{term}
command from the glossaries.sty
package.
I envision the markdown to look something like this:
mentioning a gls:term from the glossary.
or something like this:
mentioning a gls(term) from the glossary
So the syntax would be very similar to LaTeX, but a bit more lightweight.
Is there a way to do this in pandoc? Inheriting from Block
or Inline
and setting up custom syntax such that it can be processed by a Lua or Python filter?
Thanks for your consideration.
Regards,
Amine