fletcher / peg-multimarkdown

An implementation of MultiMarkdown in C, using a PEG grammar - a fork of jgm's peg-markdown. No longer under active development - see MMD 5.
Other
523 stars 55 forks source link

Links in footnotes in LaTeX #114

Closed maparent closed 12 years ago

maparent commented 12 years ago

Good day! Links generate a footnote in LaTeX/memoir; but if I have a link in a footnote, I get a nested footnote. Eg:

Text with footnote[^fn]

[^fn]: Footnote with link example

Becomes

Text with footnote\footnote{Footnote with link \href{http://www.example.com/}{example}\footnote{\href{http://www.example.com/}{http:/\slash www.example.com\slash }}}

Unfortunately, nested footnotes are not such good news in LaTeX. Could it be simplified to the following?

Text with footnote\footnote{Footnote with link \href{http://www.example.com/}{example}}

I realize it means missing the URL, but it's the best I can think of at the moment.

fletcher commented 12 years ago

That's the way links are created for LaTeX so that URLs are visible when PDFs are printed. If you want to create a link inside a footnote for LaTeX, I would suggest using the <http://example.com> syntax.

I don't plan on changing this behavior currently.