Files
pandoc/test/command/10643.md
T
John MacFarlaneandClaude 0e399cc799 Update test for raw_html-aware inline <style> handling.
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>
2026-09-09 03:12:53 +00:00

22 lines
359 B
Markdown

```
% 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" ] ]
```