Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline code attributes not working for listings #5420

Closed
DCsunset opened this issue Apr 2, 2019 · 0 comments
Closed

Inline code attributes not working for listings #5420

DCsunset opened this issue Apr 2, 2019 · 0 comments

Comments

@DCsunset
Copy link

DCsunset commented Apr 2, 2019

Pandoc version 2.7.1

While adding attributes to code block works,
adding attributes to inline code doesn't.

The following code

`int a = 1;`{.cpp style=cpp}

```{.cpp style=cpp}
int a = 1;
```

will generate (using command pandoc --listings test.md -o test.tex)

\passthrough{\lstinline[language={C++}]!int a = 1;!}

\begin{lstlisting}[language={C++}, style=cpp]
int a = 1;
\end{lstlisting}

As can be seen in the code,
the style attribute for the inline code is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants