sfirke commented on issue #30381:
URL: https://github.com/apache/superset/issues/30381#issuecomment-5480904392

   This looks like the same bug as #43721, with a different cause than the one 
diagnosed here.
   
   It isn't `HTML_SANITIZATION_SCHEMA_EXTENSIONS` — the split happens in 
`remark-parse`, before `rehype-sanitize` ever runs. `Handlebars.tsx` joins the 
template and the `<style>` block with a single newline, so when the template 
opens with a block-level HTML tag the `<style>` tag gets absorbed into that 
tag's Markdown HTML block (type 6), which ends at the first blank line — 
leaking every CSS rule after it as visible text.
   
   Workaround without a patch: add a trailing blank line at the end of the 
Handlebars Template box, or remove all blank lines from the CSS.
   
   Fix in #43722.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to