From e76b6724144032c62c183f850fe05271aa245fb5 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 28 Apr 2017 12:03:59 +0200 Subject: LaTeX writer: don't use lstinline it \item[..]. If you do, the contents of item disappear or are misplaced. Use `\texttt` instead. Closes #645. --- test/command/645.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/command/645.md (limited to 'test') diff --git a/test/command/645.md b/test/command/645.md new file mode 100644 index 000000000..90b285bed --- /dev/null +++ b/test/command/645.md @@ -0,0 +1,12 @@ +Don't use listings commands in \item[..] context: +``` +% pandoc -t latex +`--foo` **BAR** + +: Enables the foo feature with **BAR** as its flavour. +^D +\begin{description} +\item[\texttt{-\/-foo} \textbf{BAR}] +Enables the foo feature with \textbf{BAR} as its flavour. +\end{description} +``` -- cgit v1.2.3