evilstreak / markdown-js

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

Fix of src attribute population. #200

Closed walnutist closed 9 years ago

walnutist commented 10 years ago

Only fetch the value of href attribute if the src attribute of img tag is undefined. Otherwise, any customized dialect returning img tag would fail if the processing is done thru toHTML(toHTMLTree(text, dialect)).

ashb commented 9 years ago

If a custom dialect is producing different JsonML then that is a bug in the dialect. The JsonML+markdown is not the same as JsonML+HTML