Skip to content

fix: preserve word boundaries between text and inline-formatted nodes#22

Open
xcapaldi wants to merge 1 commit into
mainfrom
claude/fix-text-extraction-spacing-HVCX5
Open

fix: preserve word boundaries between text and inline-formatted nodes#22
xcapaldi wants to merge 1 commit into
mainfrom
claude/fix-text-extraction-spacing-HVCX5

Conversation

@xcapaldi

Copy link
Copy Markdown
Owner

extractPlainText was trimming each text node and inserting a synthetic
space only between consecutive text nodes, causing adjacent emphasis/code
spans to merge with the preceding word.

Write text node values verbatim and trim once at the end instead.

https://claude.ai/code/session_011KRAawZFT53ysP3vHjB54D

extractPlainText was trimming each text node and inserting a synthetic
space only between consecutive text nodes, causing adjacent emphasis/code
spans to merge with the preceding word.

Write text node values verbatim and trim once at the end instead.

https://claude.ai/code/session_011KRAawZFT53ysP3vHjB54D
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