pandoc/test/command/7525.md
Elliot Bobrow f317ec41a1
LaTeX: Handle formatted text inside code inline (#8129)
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"]`.
2022-06-20 12:18:05 -07:00

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." ]
        ]
    ]
]