markdown-to-jsx icon indicating copy to clipboard operation
markdown-to-jsx copied to clipboard

overriding footnotes

Open dmliao opened this issue 5 years ago • 2 comments

Hi there,

Would it be possible to use options to override the HTML representations of footnotes (without also changing all other links)?

I'd like to be able to replace each footnote with an inline tooltip, sort of like how bigfoot renders them. That might require exposing footnotes separately in options, since their DOM representation isn't a 1 to 1 HTML tag.

dmliao avatar Apr 06 '19 18:04 dmliao

Need to think about this - what you actually need is the footnote data available if you pass an alternate anchor tag component as an override.

quantizor avatar Apr 18 '19 15:04 quantizor

@probablyup yeah, with the option to override footnote and make available the data it will give a user more room to be creative on how they display their footnotes. I would love to have this feature 👍🏾

erwagasore avatar Jan 14 '23 19:01 erwagasore