day50-dev / day50-dev/streamdown
Issues rendering codeblocks with some Pygments styles
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 360
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Hello and thank you for your work!
I've noticed an issue with codeblock rendering when using non-native Pygments syntaxes.
Here is my config (streamdown version 0.33.0):
[features]
CodeSpaces = false
Clipboard = true
Logging = false
Timeout = 10.0
Savebrace = true
[style]
Margin = 2
ListIndent = 2
PrettyPad = true
PrettyBroken = true
Width = 0
HSV = [0.147, 0.137, 0.976]
Dark = { H = 1.2, S = 1.5, V = 1.1 }
Grey = { H = 1.00, S = 1.15, V = 0.46 }
Mid = { H = 1.57, S = 1.4, V = 0.84 }
Symbol = { H = 3.60, S = 3.60, V = 0.52 }
Head = { H = 0.43, S = 3.50, V = 0.41 }
Bright = { H = 0.43, S = 3.60, V = 0.50 }
Syntax = "gruvbox-light"
Here is the command I'm running:
llm -f $XDG_CONFIG_HOME/llm/fragments/markdown-output.md "How do I update images when using nix's oci-containers? show me how to do this imperatively and with nix" | sd -c ~/Library/Application\ Support/streamdown/config.nongruv.toml
When I change it to anything but 'native' and 'solarized-light' syntaxes, the following issues show up:
- Codeblocks are rendered empty
- Codeblocks are missing some content (usually at the start of the block)
- Codeblocks are not a fixed width
I encountered this with gruvbox-light, perldoc, friendly and a number of others. All I changed in the config was the Syntax setting
Here's some example images:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the provided streamdown command and compare the native, solarized-light, gruvbox-light, perldoc, and friendly Syntax settings. Trace the codeblock rendering and Pygments-style handling, then verify that each style preserves all content and renders codeblocks at a fixed width.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100