mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 01:41:20 +08:00
7fdc01ac0d
Move formatting from inside inline code elements to the outside in order to retain formatting.
34 lines
816 B
Markdown
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" ] ] ]
|
|
```
|