* Labels for numbered examples in AST
@ 2020-05-13 8:31 Gunnar Lund
[not found] ` <e69452e9-cc26-4ef9-b0c7-774d3ddaa8b1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Gunnar Lund @ 2020-05-13 8:31 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1386 bytes --]
Hi all,
Are there any plans to make the label in numbered examples (e.g., the label
in "(@label)") accessible somehow in the AST?
I ask this because I've written a lua filter for linguistic examples (as
described in https://www.eva.mpg.de/lingua/pdf/Glossing-Rules.pdf) which
converts a specific markdown syntax based on numbered examples to a syntax
used in gb4e (https://ctan.org/pkg/gb4e?lang=en), a popular latex package
for linguists, when converting to pdf. The markdown syntax looks like
(setting aside some glossing specific syntax): (@) <#label> example text
The lua filter and syntax for markdown work fine, but ideally this filter
could be written with the usual (@label) syntax. This would require that
the "label" there would be retrievable in the AST. Unfortunately, the label
string looks like it gets lost at the reader step.
My apologies if this has been brought up before, I searched this and github
but couldn't find anything.
Thanks!
Gunnar
--
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/e69452e9-cc26-4ef9-b0c7-774d3ddaa8b1%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1962 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Labels for numbered examples in AST
[not found] ` <e69452e9-cc26-4ef9-b0c7-774d3ddaa8b1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-05-13 20:54 ` John MacFarlane
0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2020-05-13 20:54 UTC (permalink / raw)
To: Gunnar Lund, pandoc-discuss
There's not currently a good way to do this, sorry.
Gunnar Lund <gunnar.l.n-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Hi all,
>
> Are there any plans to make the label in numbered examples (e.g., the label
> in "(@label)") accessible somehow in the AST?
>
> I ask this because I've written a lua filter for linguistic examples (as
> described in https://www.eva.mpg.de/lingua/pdf/Glossing-Rules.pdf) which
> converts a specific markdown syntax based on numbered examples to a syntax
> used in gb4e (https://ctan.org/pkg/gb4e?lang=en), a popular latex package
> for linguists, when converting to pdf. The markdown syntax looks like
> (setting aside some glossing specific syntax): (@) <#label> example text
>
> The lua filter and syntax for markdown work fine, but ideally this filter
> could be written with the usual (@label) syntax. This would require that
> the "label" there would be retrievable in the AST. Unfortunately, the label
> string looks like it gets lost at the reader step.
>
> My apologies if this has been brought up before, I searched this and github
> but couldn't find anything.
>
> Thanks!
> Gunnar
>
> --
> 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/e69452e9-cc26-4ef9-b0c7-774d3ddaa8b1%40googlegroups.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-13 20:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 8:31 Labels for numbered examples in AST Gunnar Lund
[not found] ` <e69452e9-cc26-4ef9-b0c7-774d3ddaa8b1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-05-13 20:54 ` 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).