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-to-gfm reader does not interpret type attribute on <ol> #4797

Closed
ppKrauss opened this issue Jul 27, 2018 · 1 comment
Closed

HTML-to-gfm reader does not interpret type attribute on <ol> #4797

ppKrauss opened this issue Jul 27, 2018 · 1 comment

Comments

@ppKrauss
Copy link

Using pandoc v2.2.2, it seems the same old bug reported at issue #2313

The problem can be reproduced by

pandoc -f html -t gfm << EOT
<ol type="1">
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
<ol type="I">
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
<ol type="i">
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
<ol type="A">
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
<ol type="a">
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
EOT

The result is a bug, all as type="1".

@mb21
Copy link
Collaborator

mb21 commented Jul 29, 2018

The HTML reader actually parses this fine. But since github markdown doesn't support those kinds of lists, the gfm and markdown_github output formats fall back to normal lists.

Try -t markdown instead and it works as you want, since there the fancy_lists extension is enabled (or -t markdown_github+fancy_lists).

@mb21 mb21 closed this as completed Jul 29, 2018
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

2 participants