Skip to content

Fix restoring style after style inline text#1457

Merged
dgageot merged 2 commits intodocker:mainfrom
rumpl:fix-style-restore
Jan 21, 2026
Merged

Fix restoring style after style inline text#1457
dgageot merged 2 commits intodocker:mainfrom
rumpl:fix-style-restore

Conversation

@rumpl
Copy link
Copy Markdown
Member

@rumpl rumpl commented Jan 21, 2026

If the markdown had a line like "Hello there beautiful", the "beautiful" text would have the default terminal style because there is a reset of styling after the code block, we fix this by reseting to normal text style when needed.

Ran benchmarks, this adds only around 3 more allocs for small texts

If the markdown had a line like "Hello `there` beautiful", the
"beautiful" text would have the default terminal style because there is
a reset of styling after the code block, we fix this by reseting to
normal text style when needed.

Ran benchmarks, this adds only around 3 more allocs for small texts

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@rumpl rumpl requested a review from a team as a code owner January 21, 2026 00:29
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@dgageot dgageot merged commit a8d1f1b into docker:main Jan 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants