Skip to content

fix: prevent adding space on styling bold#294

Open
lorenzozane wants to merge 1 commit into
kepano:mainfrom
lorenzozane:fix-bold-extra-space
Open

fix: prevent adding space on styling bold#294
lorenzozane wants to merge 1 commit into
kepano:mainfrom
lorenzozane:fix-bold-extra-space

Conversation

@lorenzozane
Copy link
Copy Markdown
Contributor

#288 pointed out a spacing issue related to <strong> tags conversion, which introduce extra spaces breaking up words that are partially bold for styling reasons.

Example

https://eblog.fly.dev/ginbad.html#3-http-is-not-that-complicated-a-brief-review
The HyperText Transport Protocol has a client send HTTP Requests, and a server responds with HTTP Responses.
gets parsed as:
The H yper T ext T ransport P rotocol has a client send HTTP Requests, and a server responds with HTTP Responses.

Fix

The proposed change prevent spaces from being inserted inside words that are split across <strong> tags, which could otherwise break up styled text incorrectly.

Fixes #288

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.

Issue with bold on https://eblog.fly.dev/ginbad.html

1 participant