evilstreak / markdown-js

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

FIX: Support inline header formatting #142

Closed eviltrout closed 10 years ago

eviltrout commented 10 years ago

This was reported by one of our users. Apparently putting formatting in a header does not work. This isn't in the markdown spec, but according to babelmark the consensus is this should be supported:

http://johnmacfarlane.net/babelmark2/?text=**Bold**%0A--------

This patch enables support for it.

eviltrout commented 10 years ago

oops I screwed up this PR, let me update it.

eviltrout commented 10 years ago

There, fixed. Ready for review :)

ashb commented 10 years ago

Yup looks good - we just missed it in the STX style of headers.