Marked: Is The Blockquote Error?

Created on 5 Jun 2015  路  6Comments  路  Source: markedjs/marked

I had writing > test but become > test without blockquote. Why?

Most helpful comment

use $('#content').text() to get text works for me.

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

learykara picture learykara  路  3Comments

priyesh-diukar picture priyesh-diukar  路  3Comments

mjbvz picture mjbvz  路  4Comments

amejiarosario picture amejiarosario  路  3Comments

cusalvi picture cusalvi  路  3Comments