mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 03:47:20 +00:00
b7bd1210b0
`<mark>`, `<var>`, `<samp>`, and `<kbd>` now produce Code or Span elements with classes, which can be handled by multiple output formats, instead of simply being parsed as raw HTML tags. Closes #11299.
480 B
480 B
% pandoc -f mediawiki -t native
<foo>
<samp>x</samp>
<kbd>x</kbd>
<var>x</var>
<mark>This is ''highlighted''</mark>
^D
[ Para [ Str "<foo>" ]
, Para [ Code ( "" , [ "sample" ] , [] ) "x" ]
, Para [ Span ( "" , [ "kbd" ] , [] ) [ Str "x" ] ]
, Para [ Code ( "" , [ "variable" ] , [] ) "x" ]
, Para
[ Span
( "" , [ "mark" ] , [] )
[ Str "This"
, Space
, Str "is"
, Space
, Emph [ Str "highlighted" ]
]
]
]