fletcher / MultiMarkdown

Expanded perl version of John Gruber's original Markdown --- No longer under active development since MMD 3
http://fletcherpenney.net/multimarkdown/
1.06k stars 530 forks source link

Making footnotes compatible with picky CMSes #33

Open workwithnano opened 13 years ago

workwithnano commented 13 years ago

Hi fletcher,

This is edge case, yes, but here's what's prompted me to patch MMdown. I use Notational Velocity (nvAlt) to write blog posts. I use MMdown w/ footnotes. I view the source and copy/paste it into posterous's html editor, and it takes the liberty of stripping out "id" attributes from the "li" footnote elements, and on top of that, chokes on the colons in the footnote ids.

This patch replaces colons with underscores. It also adds "a name=fn_footnoteid"-style anchors — which posterous accepts — in order to give the footnotes a proper link.

I absolutely love MMdown, thanks for all the hard work.

All best, Nano