fletcher / MultiMarkdown-4

This project is now deprecated. Please use MultiMarkdown-6 instead!
https://github.com/fletcher/MultiMarkdown-5
Other
307 stars 59 forks source link

Bibliography in html output? #71

Closed van-de-bugger closed 10 years ago

van-de-bugger commented 10 years ago

MultiMarkdown version 4.5.3 (built from sources downloaded from git today).

Source:

Some text with bibliography[p. 99][#a].

[#a]: Fiction book.

Some text with footnote.[^b]

[^b]: Just a footnote.

Command line:

$ multimarkdown -o output.odf -t odf text.mmd

Output is ok, there is "Bibliography" section at the end of the document.

Now the same in html format:

$ multimarkdown -o output.html -t html text.mmd 

Result:

<p>Some text with bibliography<a class="citation" href="#fn:1" title="Jump to citation">[<span class="locator">p. 99</span>, 1]<span class="citekey" style="display:none">a</span></a>.</p>

<p>Some text with footnote.<a href="#fn:2" id="fnref:2" title="see footnote" class="footnote">[2]</a></p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1" class="citation"><span class="citekey" style="display:none">a</span><p>Fiction book.</p>
</li>

<li id="fn:2">
<p>Just a footnote. <a href="#fnref:2" title="return to article" class="reversefootnote">&#160;&#8617;</a></p>
</li>

</ol>
</div>

Problem: There is no "Bibliography" section at the end. The only referenced book is listed in the same list with ordinary footnotes.

fletcher commented 10 years ago

All citations/footnotes are treated as endnotes in HTML. HTML has no concept of footnotes, bibliography, etc.

ilmaisin commented 9 years ago

My humble proposal: