pandoc/test/command/5797.md
Florian B a933ad30fb Add support for reading & writing <mark> elements
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.
2019-10-16 09:08:12 -07:00

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>
```