evilstreak / markdown-js

A Markdown parser for javascript
7.69k stars 863 forks source link

Support references that span lines #134

Closed eviltrout closed 10 years ago

eviltrout commented 10 years ago

Markdown-js doesn't handle references that span multiple lines. For example:

I am a [link
that] spans lines.

[link that]: /some-link

Most of the code to support this is already in place. It was just an issue of normalizing the reference matcher to ignore new lines.

eviltrout commented 10 years ago

@ashb Good catch. I've updated the PR and it indeed works and passes the tests.