-
-
Notifications
You must be signed in to change notification settings - Fork 26
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: