public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Gunnar Lund <gunnar.l.n-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Labels for numbered examples in AST
Date: Wed, 13 May 2020 01:31:59 -0700 (PDT)	[thread overview]
Message-ID: <e69452e9-cc26-4ef9-b0c7-774d3ddaa8b1@googlegroups.com> (raw)


[-- 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 --]

             reply	other threads:[~2020-05-13  8:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-13  8:31 Gunnar Lund [this message]
     [not found] ` <e69452e9-cc26-4ef9-b0c7-774d3ddaa8b1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-05-13 20:54   ` John MacFarlane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e69452e9-cc26-4ef9-b0c7-774d3ddaa8b1@googlegroups.com \
    --to=gunnar.l.n-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).