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 headlines incorrectly parsed after plain list #1698

Closed
pmagwene opened this issue Oct 17, 2014 · 5 comments
Closed

Org headlines incorrectly parsed after plain list #1698

pmagwene opened this issue Oct 17, 2014 · 5 comments

Comments

@pmagwene
Copy link

Using pandoc 1.13.1 on OSX:

pandoc --version
pandoc 1.13.1
Compiled with texmath 0.8, highlighting-kate 0.5.9.

It appears that either the org mode reader is incorrectly parsing Org headlines that follow after a plain list. Here is a minimal example:

* Uno
   - One
   - Two
   - Three
* Dos
* Tres

Processing this as pandoc -f org -t markdown results in:

Uno
===

-   One
-   Two
-   Three
-   Dos
-   Tres

Whereas the correct output should be:

Uno
===

- One
- Two
- Three

Dos
===

Tres
====
@jgm
Copy link
Owner

jgm commented Oct 17, 2014

@tarleb, do you see how to fix this?

@tarleb
Copy link
Collaborator

tarleb commented Oct 17, 2014

@shelf already wrote a nice patch, referenced in issue #1650. I was planning to work on the backlog of org related issues during the weekend. Apologies for not handling this earlier.

@thumphries
Copy link
Contributor

I was literally just tidying it up now. Looks like it affects definition lists too, so I'm writing some tests.

thumphries added a commit to thumphries/pandoc that referenced this issue Oct 18, 2014
Tidy up fix for jgm#1650, jgm#1698 as per comments in jgm#1680.
Fix same issue for definition lists with the same method.
@pmagwene
Copy link
Author

@jgm @tarleb @shelf Thanks for the quick response. Will try and test it soon on my end.

@mpickering
Copy link
Collaborator

Closed by #1680

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants