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"]`.
587 B
587 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." ]
]
]
]