f317ec41a1
Add `formatCode` function to Text.Pandoc.Shared [API change]. Use this in the LaTeX reader so that e.g. `\texttt{\textbf{bold code}}` is parsed as `Strong [Code ("",[],[]) "bold code"]`.
19 lines
587 B
Markdown
19 lines
587 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." ]
|
|
]
|
|
]
|
|
]
|
|
```
|