Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Org reader: TODO and DONE labels require extra spaces #5484

Closed
atbest opened this issue May 5, 2019 · 0 comments
Closed

Org reader: TODO and DONE labels require extra spaces #5484

atbest opened this issue May 5, 2019 · 0 comments

Comments

@atbest
Copy link

atbest commented May 5, 2019

When the headlines contain task status labels like TODO or DONE, the labels affect parsing of following inline elements if only one space exists. For example, in the following codes, the first line has only one space after DONE and the second line has two spaces after DONE. Emacs can parse /italic/ correctly for both lines, however, Pandoc cannot recognize /italic/ in the first line and it only parses the second line correctly.

Org code:

** DONE /italic/ one space
** DONE  /italic/ two spaces

Emacs output:

<div id="outline-container-org80d58ab" class="outline-2">
<h2 id="org80d58ab"><span class="section-number-2">1</span> <span class="done DONE">DONE</span> <i>italic</i> one space</h2>
</div>
<div id="outline-container-org99010cd" class="outline-2">
<h2 id="org99010cd"><span class="section-number-2">2</span> <span class="done DONE">DONE</span> <i>italic</i> two spaces</h2>
</div>

Pandoc output:

<h2 id="italic-one-space"><span class="done DONE">DONE</span> /italic/ one space</h2>
<h2 id="italic-two-spaces"><span class="done DONE">DONE</span> <em>italic</em> two spaces</h2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants