Inline syntax highlighting background (LaTeX)
- Dominant language
- Haskell
- Stars
- 218
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
The `\VERB` environment as implemented in the pandoc defaults template does not apply the background specified in the skylighting theme, resulting in potentially unreadable code if syntax highlighting is enabled on inline code and a dark theme is in use (e.g. breezedark).
Example:
```
A line with `function update_post_thumbnail_cache( $wp_query = null )`{.php} inline code and syntax highlighting.
A line with `function update_post_thumbnail_cache( $wp_query = null )` inline code.
```
An effective workaround in the short term is to not use fenced code attributes on inline code, which has pandoc use `\texttt` rather than `\VERB`.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating how inline code with syntax highlighting reaches the LaTeX `\VERB` environment and how the Skylighting theme background is represented. Compare the affected output with the stated `\texttt` workaround and the breezedark example. Done means inline highlighted code applies the theme background without relying on that workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell, latex
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100