diff options
| author | Elliot Bobrow <77182873+ebobrow@users.noreply.github.com> | 2022-06-20 12:18:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-20 12:18:05 -0700 |
| commit | f317ec41a1948e35330364c3120d937cc9934888 (patch) | |
| tree | dedfc50c6ebfb54461b860df31c2cbe696d666e0 /test | |
| parent | a21d6e9fa6d9e0287b6db05fc663810337ef3f9a (diff) | |
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"]`.
Diffstat (limited to 'test')
| -rw-r--r-- | test/command/7525.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/command/7525.md b/test/command/7525.md new file mode 100644 index 000000000..788c749a6 --- /dev/null +++ b/test/command/7525.md @@ -0,0 +1,19 @@ +``` +% 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." ] + ] + ] +] +``` |
