Hi Rasmus and all,

Rasmus <ras...@gmx.us> writes:

> Vaidheeswaran C <vaidheeswaran.chinnar...@gmail.com> writes:
>
>> I am complaining about how org-element.el behaves.

> Oh, you are right.  _ is only allowed as the first character, as you
> probably saw.  See http://permalink.gmane.org/gmane.emacs.orgmode/95609.
> I would tend to agree that this is problematic, but _ is itself
> problematic since it's the subscription character...  From
> http://permalink.gmane.org/gmane.emacs.orgmode/95631 I gather that key
> support is modeled after Pandoc, but AFAIK Pandoc *does* support _ as part
> of the key cf. http://pandoc.org/README.html#citations.

Yep, that's my bad, sorry.

Pandoc says: "The citation key must begin with a letter or _, and may
contain alphanumerics, _, and internal punctuation characters
(:.#$%&-+?<>~/)."

I dropped the second underscore when I was writing the grammar.  Thanks,
Vaisheeswaran, for noticing.  Nicolas, IMO we should update the parser
to allow underscores in keys (including at the final character, I
guess).

Best,
Richard


Reply via email to