-
-
Notifications
You must be signed in to change notification settings - Fork 26
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Do curlies in always have to be escaped in prism, in a .hbs file? #436
Comments
*I meant for language, markup seemed better highlighting than handlebars, thx @didoo for pointing out the typo |
I figured out a fix to this thanks to my colleague, @meirish (you the real MVP! 馃檹) and will submit a PR. This syntax works:
Helpful article he shared that I can propose including: https://michaelsoolee.com/ember-unescaped-html/ |
@amyrlam thanks for opening an issue! Is the same true if you put the code in a string variable first and do something like |
@rwwagner90 Thanks for the reply, much appreciated, that's a good idea! I'm going to stick with this syntax for now, so that say a future "Edit on GitHub" button can have everything on the docs page editable in the .hbs file.
I can add a note to the README in a PR if useful? (If not useful, can close the issue as solved.) Just let me know! |
@amyrlam it couldn't hurt to have this info captured in the README. A PR would be great! |
馃憢 I made this repro hashicorp/flight#367, am wondering if this is a limitation of PrismJS or if you had any insights?
Curlies do not display (nothing displays in their place, no error):
Curlies do not display, using https://prismjs.com/plugins/unescaped-markup/:
This syntax does work for me:
Aside: It seemed like there was better syntax highlighting using
@language="markup"
vs@language="markup"
.If you have any insight please LMK!
The text was updated successfully, but these errors were encountered: