-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Unescaped markup plugin #892
Comments
Hi @LeaVerou, Great plugin! Here are my thoughts on it. First of all there seem to be a few minor whitespace issues in the |
What do you think about #893. I know it is wrong to abuse HTML-comments like this, but it works very well. |
|
Huh, you’re right! How did I miss that? |
What syntax would you suggest for |
Puh, I don't know.
We could allow both... |
I agree that this should not be limited to the Markup component. |
Hi, guys restriction of the plugin to markup language only is not enough for me as well.
So the code embedded code block in html looks like
Or just
|
Interesting. Indeed, it seems there are use cases for other languages too, and we should not restrict it to markup. I don't like the opt-in though. Perhaps an opt out would be best. |
This is also useful for any language in systems that might remove line breaks and whitespace, but which do preserve comments or scripts as is. |
I think this issue can be closed now. |
As discussed in #887 .
I just pushed 07d77e5 but it’s still hidden (i.e. not in components.js)
URL: http://prismjs.com/plugins/unescaped-markup/
I didn’t do a PR so that it has a public URL and it’s hidden anyway if I don’t add it to components.js (and because I was being a bit lazy).
Does it look good to everyone? Would “raw markup” be a better name? Unescaped markup is kinda long, albeit descriptive.
ping @zeitgeist87 @Golmote
The text was updated successfully, but these errors were encountered: