Open dbolack-ab opened 2 days ago
v3
Chrome
Windows
In writing a how-to I discovered I was unable to assign a string value to a CSS property if it contained a : via the {{}} style setting syntax.
:
{{}}
{{footer,--chapterName:"'1:How-to'"}}
Generates
<span class="inline-block footer" style="--chapterName:;">“‘1:How-to’”</span>
Instead of
<span class="inline-block footer" style="--chapterName:‘1:How-to’;”></span>
The semi-colon is also superfluous.
Right, we need to encode as a CSS string: https://developer.mozilla.org/en-US/docs/Web/CSS/string
This also applies to html attributes.
Renderer
v3
Browser
Chrome
Operating System
Windows
What happened?
In writing a how-to I discovered I was unable to assign a string value to a CSS property if it contained a
:
via the{{}}
style setting syntax.Code
Generates
Instead of