EDIT1
I have a markdown with inline code with curly quotes and I use pandoc to generate a PDF.
The markdown is
Fancy Unicode quotes inlined `“”`.
The resulting latex is :
Fancy Unicode quotes inlined \lstinline!“”!.
xelatex fails to build the PDF.
Is it a normal behavior ?
EDIT2
First of all, thanks for you response. I should have mentioned that I am quite new with latex. I may write some wrong statement.
I use pandoc
to convert my markdown into PDF with xelatex
with the command pandoc FOO.md -o FOO.pdf --listings --latex-engine xelatex
I do not think listing does not handle unicode because the following markdown is working.
```bash
FOO=“”
```
The corresponding latex is:
\begin{lstlisting}[language=bash]
FOO=“”
\end{lstlisting}
EDIT 3
I just tried another test which let me think that this looks like a bug.
The following markdown example fails:
Inline code `“”`
Corresponding latex:
Inline code \lstinline!“”!
Console:
$ pandoc FOO.md -o FOO.pdf --listings --latex-engine xelatex
! File ended while scanning use of \lst@temp.
<inserted text>
\par
<*> /tmp/tex2pdf.14686/input.tex
No pages of output.
Transcript written on /tmp/tex2pdf.14686/input.log.
pandoc: Error producing PDF
While the following markdown example succeeds:
Inline code `FOO=“”`
Corresponding latex:
Inline code \lstinline!FOO=“”!
literal
feature, search the site forlistings literal