I had writing > test but become > test without blockquote. Why?
I noticed the same error.
Me too!!
use $('#content').text() to get text works for me.
I'm getting the same thing!
This issue should be closed. Since that's the issue is from the user not the lib itself.
Check the data string first to see if it > rather than />. If your input is from server, it is possible to get />+ instead. In that case, just replace your string using .replace(/>+/g, '>') before put it into marked().
Works as expected:
$ bin/marked
> test
^D
<blockquote>
<p>test</p>
</blockquote>
@joshbruce
Most helpful comment
use $('#content').text() to get text works for me.