7fdc01ac0d
Move formatting from inside inline code elements to the outside in order to retain formatting.
816 B
816 B
% 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" ] ] ]