Skip to content

Conversation

@kellyjosephprice
Copy link
Contributor

@kellyjosephprice kellyjosephprice commented Oct 29, 2024

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
Contributor

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
13 checks passed
@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.

3 participants