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

HTML list tags with mediawiki input. #1122

Closed
roccomoretti opened this issue Jan 21, 2014 · 0 comments
Closed

HTML list tags with mediawiki input. #1122

roccomoretti opened this issue Jan 21, 2014 · 0 comments

Comments

@roccomoretti
Copy link

I'm seeing odd behavior with html-tagged lists with mediawiki input.

First off, the mediawiki software has no problems with the following (test for yourself at http://en.wikipedia.org/wiki/Wikipedia:Sandbox )

Start
<ol>
<li>X
<li>Y
<li>Z
</ol>
Middle
<ul>
<li>A
<li>B
<li>C
</ul>
End

However using pandoc to convert to markdown not only leaves the unmatched <li> tags, it also strips just the <ol> and <ul> tags, leaving the </ol> and </ul> tags dangling.

More importantly, though, even when the unmatched <li> tags are taken care of

Start
<ol>
<li>X</li>
<li>Y</li>
<li>Z</li>
</ol>
Middle
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
</ul>
End

You do not get one ordered list and one unordered list in markdown, but instead have two ordered lists.

Start

1.  X
2.  Y
3.  Z

Middle

1.  A
2.  B
3.  C

End
$pandoc --version
pandoc 1.12.2.1
Compiled with texmath 0.6.5.2, highlighting-kate 0.5.5.1.
@jgm jgm closed this as completed in 9f3b2f6 Jan 23, 2014
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

1 participant