snoyberg / markdown

Convert Markdown to HTML, with XSS protection
BSD 3-Clause "New" or "Revised" License
69 stars 401 forks source link

Footnotes #15

Closed pikajude closed 11 years ago

pikajude commented 11 years ago

Found myself wanting this feature as I was writing a blog post earlier.

Some text with a citation.{1}

***

{^1}Further explanation goes here.

It's an inline, not a block, element, which I thought was a lot more flexible. There's nothing preventing the user from swapping {1} and {^1} and getting the same behavior.

  1. Should we prevent people from using {^x} in body text?
    • How?
  2. Should this be a block element?
snoyberg commented 11 years ago

I think this implementation is fine. I haven't used this myself, but it seems good. Thanks!

pikajude commented 11 years ago

Timeline on the version bump and upload to hackage? I'm eager to start using this functionality.

snoyberg commented 11 years ago

Uploading now as markdown 0.1.6.

deckool commented 11 years ago

does anybody use them and can tell me why i got this confusion

<a href="#ref-2" id="footnote-2">[2]</a> and <a href="#ref-2" id="footnote-2">[2]</a> The share tech mono font. <a>

despite the fact that the 0.1.6 version we have the href's and id's described correctly? It should be

<a href="footnote-2" id="#ref-2">[2]</a> and <a href="#ref-2" id="footnote-2">[2]</a> The share tech mono font. <a>

Am i right?