public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Adding own elements to pandoc AST
@ 2022-07-13 21:05 A A
       [not found] ` <CAMwawgNgACJDXLyFAcx26iy4-71yOUD+Hccx67+RgJB132D0_A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: A A @ 2022-07-13 21:05 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]

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

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgNgACJDXLyFAcx26iy4-71yOUD%2BHccx67%2BRgJB132D0_A%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 5644 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-15  9:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13 21:05 Adding own elements to pandoc AST A A
     [not found] ` <CAMwawgNgACJDXLyFAcx26iy4-71yOUD+Hccx67+RgJB132D0_A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-07-13 22:34   ` Bastien DUMONT
2022-07-14  3:17     ` A A
     [not found]       ` <CAMwawgNLuqw-NM_RYCHurBdg0EH20sjeAiYGOepmbgQLW9MD_A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-07-14  7:46         ` Bastien DUMONT
2022-07-15  9:29         ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).