mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-15 12:05:43 +00:00
With raw_html disabled (the default for the HTML reader), an inline <style> element is now ignored rather than passed through as a RawInline; the raw_html-enabled behavior is still tested. Co-Authored-By: Claude <noreply@anthropic.com>
359 B
359 B
% pandoc -f html+raw_html -t native
<p>A<style></style>B</p>
^D
[ Para
[ Str "A"
, RawInline (Format "html") "<style></style>"
, Str "B"
]
]
The style element's contents should not be parsed as text even when raw_html is disabled:
% pandoc -f html -t native
<p>A<style>p { color: red; }</style>B</p>
^D
[ Para [ Str "AB" ] ]