jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.62k stars 3.38k forks source link

Convert Footnotes failed in html to docx #1889

Closed acgtyrant closed 9 years ago

acgtyrant commented 9 years ago

the exact command line used: pandoc -o 1.docx 1.html

the exact input used:

<ol style="list-style-type: decimal">
<li>xv6<a href="#fn1" class="footnoteRef" id="fnref1"><sup>1</sup></a>.</li>
</ol>
<div class="footnotes">
<hr />
<ol>
<li id="fn1"><p>http://pdos.csail.mit.edu/6.828/2014/index.html<a href="#fnref1">↩</a></p></li>
</ol>
</div>

the output received:

deepinscreenshot20150119113452

jgm commented 9 years ago

There is no standard syntax for footnotes in HTML. There are lots of different ad hoc ways of marking up footnotes, including the one you give below. But as there's no standard, pandoc doesn't try to guess what is a footnote in HTML.

acgtyrant commented 9 years ago

Thank you for your hand working!