fletcher / MultiMarkdown-4

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

Nested footnotes #62

Closed fasiha closed 10 years ago

fasiha commented 10 years ago
Main paragraph [^foot].

[^foot]: Footnotes are nice [^toe].

[^toe]: But sometimes one isn't enough.

Next paragraph.

The first footnote's link in the first paragraph is rendered just fine, but the first footnote itself has a link to footnote number 3---weird point A, and weird point B, there is only one footnote in the list of footnotes.

fletcher commented 10 years ago

Make sure you're using latest build, and it will change the 2->3 issue. But footnote support is not recursive in HTML, so point B will still hold. Footnotes/citations to notes that are used elsewhere in the main text will work, however.

Your example will work in LaTeX. Probably not in any other format.

But seriously, if you have footnotes inside your footnotes, one does have to question the organization. ;) Much like Linus Torvalds' quote, "If you need more than 3 levels of indentation, you're screwed anyway, and should fix your program."

I don't have any current plans to restructure MMD to support recursive footnotes (outside of LaTeX).

fasiha commented 10 years ago

I will readily accept the "I'm not going to support this crazy feature," but I could do without the normative constraint on writing (making me feel bad for wanting the feature)! People are using Markdown to do all kinds of crazy things, and I was wondering if MMD4 could support my ambition of writing a Discworld novel in it ;)

(In case you're not a Terry Pratchett fan, this necessarily involves footnotes in footnotes.)

MartinPacker commented 10 years ago

I, too, write in the Pratchett vein - when the mood suits. Footnotes referring to others should just plain work.