You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a custom highlight-style and syntax-definition template for my Markdown files. Everything is stored in a Docker container which I then run as follows:
My problem is that periodically I need to add longer stretches of inline code that uses backticks to highlight the text background. Anything longer than 4-5 words does not wrap.
My solution to this was to enable --listings in the pandoc execution. This solved the wrapping issue, but then all other words of phrases that were previously highlighted using single backticks no longer had a gray background.
Is it possible to use --listings in conjunction with custom highlight-style and syntax-definition formats? The former cancels out the two latter versions.
Apologies if this is not the correct forum.
The text was updated successfully, but these errors were encountered:
My problem is that periodically I need to add longer stretches of inline code that uses backticks to highlight the text background. Anything longer than 4-5 words does not wrap.
This is a known pandoc problem (see jgm/pandoc#4302) that I tried to solve for Eisvogel (see #2) but the changes don't work as expected (see #176).
My solution to this was to enable --listings in the pandoc execution. This solved the wrapping issue, but then all other words of phrases that were previously highlighted using single backticks no longer had a gray background.
Is it possible to use --listings in conjunction with custom highlight-style and syntax-definition formats?
This is not possible because these options work with the default pandoc built-in highlighting which is done by skylighting. When using --listings everything like tokenization, coloring, formatting and such is done by the listings package. Listings has very limited options regarding syntax definitions. I've included an example definition in Eisvogel for Java. But the listings syntax highlighting will always be inferior to the pandoc built-in highlighting.
You could work around this by using the minted package for highligting. Please keep in mind that the setup might be a little more work than just specifying a command line option. Unfortunately pandoc has no native support for syntax highlighting with minted (see jgm/pandoc#4117). There is however a pandoc supported filter to use minted for syntax highlighting (see https://github.com/pandoc/lua-filters/tree/master/minted).
I am using a custom
highlight-style
andsyntax-definition
template for my Markdown files. Everything is stored in a Docker container which I then run as follows:My problem is that periodically I need to add longer stretches of inline code that uses backticks to highlight the text background. Anything longer than 4-5 words does not wrap.
My solution to this was to enable
--listings
in the pandoc execution. This solved the wrapping issue, but then all other words of phrases that were previously highlighted using single backticks no longer had a gray background.Is it possible to use
--listings
in conjunction with customhighlight-style
andsyntax-definition
formats? The former cancels out the two latter versions.Apologies if this is not the correct forum.
The text was updated successfully, but these errors were encountered: