code-sample icon indicating copy to clipboard operation
code-sample copied to clipboard

Render html

Open lastmjs opened this issue 6 years ago • 1 comments

So, the wysiwyg editor that I'm using to create code samples does not use \n line breaks to create new lines, it uses <p> tags. I do not want the <p> tags to show up with my code (I'm creating code samples for JavaScript). What would you suggest to get rid of the <p> tags and instead have line breaks? I would have thought that adding the render attribute to code-sample would render the html, but it doesn't seem to be working. Thanks for any insights

lastmjs avatar Nov 30 '18 17:11 lastmjs

It looks like the render attribute is rendering the html, but it displays the plain rendered version above the prettified non-rendered version. That's almost exactly what I want, but I only want the rendered version to appear, and I want the rendered version to be prettified. Just to explain, I have a markup language with tags that compile down to html, the pretty tag compiles down to code-sample and is displayed below the editor:

screenshot from 2018-11-30 10-19-27

lastmjs avatar Nov 30 '18 17:11 lastmjs