Skip to content

Keep spaces in inline code and trim surrounding text in preview - #380

Merged
merlinfuchs merged 2 commits into
mainfrom
merlin/inline-code-spaces
Oct 16, 2026
Merged

merlinfuchs merged 2 commits into
mainfrom
merlin/inline-code-spaces

Conversation

@merlinfuchs

Copy link
Copy Markdown
Owner

Fixes #378. Preview now keeps spaces inside inline code and trims leading/trailing whitespace of the whole text, matching Discord. Trimming happens on the full source rather than per text node since the text rule splits at punctuation, so per-node trims would eat spaces between words.

@merlinfuchs
merlinfuchs merged commit a636ecb into main Oct 16, 2026
4 checks passed
@merlinfuchs
merlinfuchs deleted the merlin/inline-code-spaces branch October 16, 2026 08:11
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.

Spaces are trimmed on inline code markdown, but not on text

1 participant