Closed lukakemperle closed 5 years ago
Haven't played with this in marked.js for a long time, but it sounds like something particular to that JS library? I'd have to dig in deeper than I have time for right now…
-Brett
On 8 Feb 2019, at 11:31, artoric wrote:
Hi Brett and thank you for the Cheaters! I'm trying to add some inline HTML to the markdown document; unfortunately, marked.js skips it all of them.
<div style="leftCol"> markdown content </div>
My cheaters.js:
$('#container').html( marked(mdText, { smartLists: true, breaks: true, tables: true, gfm: true, sanitize: false, pedantic: true }) );
Any idea what happens here? -Thank you!
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/ttscoff/cheaters/issues/28
Yes, probably something with the marked.js. -Anyway, this serves my needs:
.replace(/---div/g,'<div')
.replace(/;;;div/g,'</div>')
Thanks!
Hi Brett and thank you for the Cheaters! I'm trying to add some inline HTML to the markdown document; unfortunately, marked.js skips it all of them.
My cheaters.js:
Any idea what happens here? -Thank you!