leeoniya / reMarked.js

client-side HTML > markdown
http://leeoniya.github.io/reMarked.js/
396 stars 97 forks source link

loss of essential whitespace #24

Closed alpinegizmo closed 11 years ago

alpinegizmo commented 11 years ago
reMarker.render('<b>a</b> <i>b</i>')
"**a**_b_"

Note that the space between them is lost.

leeoniya commented 11 years ago

hmm, that's no good at all. off the top of my head, nothing obvious. at first i thought i missed an inline element in the regex that prevents this, but both b and i are there: https://github.com/leeoniya/reMarked.js/blob/master/reMarked.js#L150

i'll look into this soon, thanks for reporting.