Skip to content

Org-mode reader: zero width space not recognised as an escape character #8716

@cchristiansen

Description

@cchristiansen

Org-mode uses the zero width space U+200B as an escape character, documentation here. This means that when we convert org-mode to pandoc, the following org-mode input

/emph/​asis.

/emph/​asis in​/correct/.

/try/​/​/except/​/​/else/​/​/finally/

/try/​/​/except/​/else/​/finally/

(again but with zero width spaces replaced with X for clarity),

/emph/Xasis.

/emph/Xasis inX/correct/.

/try/X/X/except/X/X/else/X/X/finally/

/try/X/X/except/X/else/X/finally/

should be rendered as

para (emph "emph" <> "Xasis")
para (emph "emph" <> "Xasis" <> space <> "inX" <> emph "correct")
para (emph "try" <> "X/X" <> emph "except" <> "X/X" <> emph "else" <> "X/X" <> emph "finally")
para (emph "try" <> "X/X" <> emph "except" <> "X" <> emph "else" <> "X" <> emph "finally")

however it is currently rendered as

para "/emph/Xasis"
para (emph "/emph/Xasis inXcorrect")
para (emph "/try/X/X/except/X/X/else/X/X/finally/")
para (emph "/try/X/X/except/X/else/X/finally/")

This problem appears to be related to #6070 and #7135. #8059 did not solve this issue.

Pandoc version
pandoc 3.0.1 and pandoc 3.1.1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions