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

fix: docId resolve error in render_footnote_anchor_name #49

Closed uroybd closed 1 year ago

uroybd commented 1 year ago

This small change allows rendering footnote if the env is missing.

For example, for footnotes in headers like this: https://github.com/oleeskild/obsidian-digital-garden/issues/204

puzrin commented 1 year ago

env is mandatory. IMO it's not good idea to dim error if env missed, that can cause difficult to debug problems..

uroybd commented 1 year ago

env is mandatory. IMO it's not good idea to dim error if env missed, that can cause difficult to debug problems..

That's true. I wonder why heading is not passing env though.

uroybd commented 1 year ago

env is mandatory. IMO it's not good idea to dim error if env missed, that can cause difficult to debug problems..

That's true. I wonder why heading is not passing env though.

uroybd commented 1 year ago

I've found the problem. It was from another plugin.