a933ad30fb
Parse <mark> elements from HTML as HTML span like elements, with a single class matching the tag name `mark`. Mark elements are rendered to HTML using the native <mark> element. Fixes https://github.com/jgm/pandoc/issues/5797.
20 lines
288 B
Markdown
20 lines
288 B
Markdown
```
|
|
% pandoc -f html -t html
|
|
<mark>Ctrl-C</mark>
|
|
^D
|
|
<mark>Ctrl-C</mark>
|
|
```
|
|
|
|
```
|
|
% pandoc -f html -t native
|
|
<mark>Ctrl-C</mark>
|
|
^D
|
|
[Plain [Span ("",["mark"],[]) [Str "Ctrl-C"]]]
|
|
```
|
|
|
|
```
|
|
% pandoc -f native -t html
|
|
[Plain [Span ("",["mark"],[]) [Str "Ctrl-C"]]]
|
|
^D
|
|
<mark>Ctrl-C</mark>
|
|
```
|