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

Highlights in inline code with syntax highlighting #7560

Closed
schar opened this issue Sep 9, 2021 · 4 comments
Closed

Highlights in inline code with syntax highlighting #7560

schar opened this issue Sep 9, 2021 · 4 comments

Comments

@schar
Copy link

schar commented Sep 9, 2021

Inline code attributes allow code highlighting, as described here. However, though my .theme file has a background color set, inline code is not rendered with any background (non-inline code blocks are rendered as expected). I would like to combine inline code syntax highlighting with background color, and don't see a way to do this. Take this md code:

`<$>`{.haskell}

Pandoc renders this to tex as \VERB|\OperatorTok{\textless{}$\textgreater{}}|. When I postprocess the tex file by wrapping this in a \tcbox from tcolorbox and crucially changing the $ to \$ (following hints I have found, e.g. here), I get the output I'm looking for. I would like this to be how my inline code is automatically rendered in tex, but anything I can see to try (e.g., redefining \VERB) does not seem workable.

@jgm
Copy link
Owner

jgm commented Sep 9, 2021

What pandoc version, what output format?
I think this is essentially a duplicate of jgm/skylighting#122

@schar
Copy link
Author

schar commented Sep 9, 2021

Output is beamer tex. Pandoc version is 2.14.2.

@jgm
Copy link
Owner

jgm commented Sep 10, 2021

See the linked issue for the problems we've encountered.

@mb21
Copy link
Collaborator

mb21 commented Nov 19, 2021

Closing in favour of jgm/skylighting#122

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

3 participants