Skip to content

fix: emphasis with links - #1007

Merged
kellyjosephprice merged 1 commit into
feat/compat-parserfrom
fix/emphasis-with-links
Oct 30, 2024
Merged

kellyjosephprice merged 1 commit into
feat/compat-parserfrom
fix/emphasis-with-links

Conversation

@kellyjosephprice

@kellyjosephprice kellyjosephprice commented Oct 29, 2024 •

Copy link
Copy Markdown
Contributor
PR App Ref CX-1238

🧰 Changes

Fixes emphasis with links in it.

The original implementation of this was naively assuming there would only be one child node. Ope.

🧬 QA & Testing

@kellyjosephprice
kellyjosephprice changed the base branch from next to feat/compat-parser October 29, 2024 23:19
@kellyjosephprice
kellyjosephprice marked this pull request as ready for review October 30, 2024 16:56

visit(node, 'text', (child: Text) => {
const newValue = child.value.trim();
const newValue = child.value.trimStart();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have to trim the start and end separately? Oh I see now! In cases where there are multiple nodes!

@kellyjosephprice
kellyjosephprice merged commit d3a8ed9 into feat/compat-parser Oct 30, 2024
@kellyjosephprice
kellyjosephprice deleted the fix/emphasis-with-links branch October 30, 2024 20:33
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