This:
<script>
let myStyle = "<style> body { margin:0; padding:0; color: green; font-family:monospace; } </style>";
</script>
compiles to this:
<script>
let myStyle = "";
</script>
(in terms of the script part of the tag only)
Very surprising behaviour! I hope the new parser fixes this. Either there's some very naive regex happening in riot at the moment, or I've really messed up somewhere.
Current workaround is this sort of thing:
let myStyle = "<"+"style"+">"+"body { margin:0; padding:0; color: green; font-family:monospace; }"+"<"+"/style"+">"; // (lol)
Can you reproduce the issue?
On which browser/OS does the issue appear?
Chrome, Ubuntu, at least
Which version of Riot does it affect?
Riot 3.0.5 at least
How would you tag this issue?
@GianlucaGuarini , fix is in the dev brach of riot-compiler
thanks @aMarCruz could you please publish a new release?
@GianlucaGuarini riot-compiler v3.1.2 is up.
Closing this issue.
Most helpful comment
@GianlucaGuarini riot-compiler v3.1.2 is up.
Closing this issue.