mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-20 14:35:44 +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>
22 lines
359 B
Markdown
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" ] ]
|
|
```
|