Skip to content

Org-mode reader: list item with inline footnote misparsed as DefinitionList #2518

Closed
conklech opened this Issue · 0 comments

1 participant

@conklech

There's a simple example using trypandoc here.

The following org-mode input is a single list item with a footnote at the end:

- List text [fn:: List footnote ]

But pandoc --from org --to native produces this erroneous result:

[DefinitionList
 [([Str "List",Space,Str "text",Space,Str "[fn"],
   [[Plain [Str "List",Space,Str "footnote",Space,Str "]"]]])]]

It seems the DefinitionList parser is too aggressive. The footnote parser should take precedence.

One workaround is to substitute a named reference, which only requires one colon. For me this is a poor compromise, but YMMV.

@tarleb tarleb added a commit to tarleb/pandoc that referenced this issue
@tarleb tarleb Org reader: Ensure whitespace around def list markers
Definition list markers (i.e. double colons `::`) must be surrounded by
whitespace to start a definition item.  This rule was not checked
before, resulting in bugs with footnotes and some link types.

Thanks to @conklech for noticing and reporting this issue.

This fixes #2518.
60920a2
@tarleb tarleb added a commit to tarleb/pandoc that referenced this issue
@tarleb tarleb Org reader: Require whitespace around def list markers
Definition list markers (i.e. double colons `::`) must be surrounded by
whitespace to start a definition item.  This rule was not checked
before, resulting in bugs with footnotes and some link types.

Thanks to @conklech for noticing and reporting this issue.

This fixes #2518.
67cb280
@jgm jgm closed this in #2526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.