code-sample
code-sample copied to clipboard
Render html
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
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:
