Skip to content

Apply Lexical formatting to item mentions#2768

Draft
Soxasora wants to merge 1 commit intostackernews:masterfrom
Soxasora:fix_lost_formatting_on_item_mention
Draft

Apply Lexical formatting to item mentions#2768
Soxasora wants to merge 1 commit intostackernews:masterfrom
Soxasora:fix_lost_formatting_on_item_mention

Conversation

@Soxasora
Copy link
Member

@Soxasora Soxasora commented Jan 25, 2026

status: proof of concept, can be improved.

Description

Fixes #2767
A DecoratorNode doesn’t support Lexical formatting because it’s only a React component wrapper. However, we can still apply the formatting found by our MDAST pipeline to decorator nodes and use it within the React component.

This PR does exactly that with ItemMentionNode.

Screenshots

Screen.Recording.2026-01-25.at.14.24.55.mp4

Additional Context

As far as I can remember, we don't have any other decorator node that should accept formatting.

Checklist

Are your changes backward compatible? Please answer below:

Yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:
5

Did you use AI for this? If so, how much did it assist you?

No

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.

Inconsistent formatting of external vs internal links

1 participant