Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render html #21

Open
lastmjs opened this issue Nov 30, 2018 · 1 comment
Open

Render html #21

lastmjs opened this issue Nov 30, 2018 · 1 comment

Comments

@lastmjs
Copy link

lastmjs commented Nov 30, 2018

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
Copy link
Author

lastmjs commented Nov 30, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant