markdown-it / markdown-it-footnote

Footnotes plugin for markdown-it markdown parser
https://markdown-it.github.io/
MIT License
210 stars 59 forks source link

remove subID footnote caption display #21

Closed ackman678 closed 7 years ago

ackman678 commented 7 years ago

Many, many thanks for markdown-it, markdown-it-footnote and friends.

This request is a suggestion to remove the subId in render_footnote_caption(). Design-wise, it doesn't really add any necessary information or additional functionality to the rendered document.

So that instead of the following example document (see red arrow): screen shot 2017-06-06 at 4 10 13 pm


we would have this document:
screen shot 2017-06-06 at 4 07 42 pm

Note the back-reference functionality here will still be intact– the relevant ids (e.g. id="fnref1" id="fnref1:1") in the link tags are still present. Thus the relevant lines in the text body will still be linked to when clicking on the footnote-backref arrows.

puzrin commented 7 years ago

No need to change default behaviour. You are expected to override renderer functions in you app.