Files
John MacFarlane b7bd1210b0 MediaWiki: better handling of inline tags.
`<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.
2025-12-30 12:11:46 -07:00

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