Files
Elliot Bobrow 7fdc01ac0d Use formatCode from #7525 in HTML and MediaWiki (#8162)
Move formatting from inside inline code elements to the outside in order
to retain formatting.
2022-07-06 22:10:24 +02:00

34 lines
816 B
Markdown

```
% pandoc -f latex -t native
\texttt{Normal code. \emph{Emph and code.} \textsc{\textbf{Bold small caps.}} \sout{Strikeout. \underline{Strikeout and underline.}}}
^D
[ Para
[ Code ( "" , [] , [] ) "Normal code. "
, Emph [ Code ( "" , [] , [] ) "Emph and code." ]
, Code ( "" , [] , [] ) " "
, SmallCaps
[ Strong [ Code ( "" , [] , [] ) "Bold small caps." ] ]
, Code ( "" , [] , [] ) " "
, Strikeout
[ Code ( "" , [] , [] ) "Strikeout. "
, Underline
[ Code ( "" , [] , [] ) "Strikeout and underline." ]
]
]
]
```
```
% pandoc -f html -t native
<code><b>hi</b></code>
^D
[ Plain [ Strong [ Code ( "" , [] , [] ) "hi" ] ] ]
```
```
% pandoc -f mediawiki -t native
<code>''hey''</code>
^D
[ Para [ Emph [ Code ( "" , [] , [] ) "hey" ] ] ]
```