Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lexical-markdown]: Refactor: allows omitting certain properties from TextMatchTransformers, adds jsdocs #6651

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AlessioGr
Copy link
Contributor

In my project, I have a TextMatchTransformer that I use solely for node => markdown string exports. For markdown string => node imports I'm using Multiline markdown transformers.

In order to accommodate this without having to pass fake stub properties to the TextMatchTransformer, this PR makes all properties optional.

Also added some much-needed JSDocs for this interface

Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 9:03pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 9:03pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 19, 2024
Copy link

size-limit report 📦

Path Size
lexical - cjs 29.85 KB (0%)
lexical - esm 29.66 KB (0%)
@lexical/rich-text - cjs 38.3 KB (0%)
@lexical/rich-text - esm 31.55 KB (0%)
@lexical/plain-text - cjs 36.9 KB (0%)
@lexical/plain-text - esm 28.86 KB (0%)
@lexical/react - cjs 40.04 KB (0%)
@lexical/react - esm 32.91 KB (0%)

Copy link
Collaborator

@etrepum etrepum left a comment

Choose a reason for hiding this comment

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

This seems reasonable to me, I did notice this last time I used the markdown implementation

@etrepum
Copy link
Collaborator

etrepum commented Sep 20, 2024

The integration test failure is fixed by #6652

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants