seth-brown / formd

A Markdown formatting tool
MIT License
147 stars 19 forks source link

Text is truncated when reference-style links are not all at bottom of document #6

Closed dlehman closed 11 years ago

dlehman commented 11 years ago

If you use reference-style links and add them just below the paragraph with the link, rather than putting them all at the bottom of the document, Formd loses the body text between the reference links. Here's an example to demonstrate:

# Header

Here is my first paragraph with [a link][1].

[1]: http://link-one.com

Here is my second paragraph with [another link][2].

[2]: http://link-two.com
seth-brown commented 11 years ago

Thanks Dave,

I'll try and patch this as soon as I can.

seth-brown commented 11 years ago

Ok, I've fixed this and pushed the new changes. Let me know if you have any issues. Thanks.