Skip to content

Added missing marks #53

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

Merged
merged 8 commits into from
Mar 1, 2023
Merged

Added missing marks #53

merged 8 commits into from
Mar 1, 2023

Conversation

KeyboardRage
Copy link
Contributor

Creates handling of super- and sub-script markings. If sup/sub are used in the Rich Editor in Contentful, it'll crash the entire render 😕

@KeyboardRage
Copy link
Contributor Author

Not quite sure how to set up the test for Asset though, since it can be any type of file.

Furthermore I haven't yet had time to figure out how it resolves the asset information from the document, it seems all it provides is the asset ID.

Copy link
Member

@tolgap tolgap left a comment

Choose a reason for hiding this comment

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

@KeyboardRage The MARKS.SUPERSCRIPT and MARKS.SUBSCRIPT changes are great! Thank you for taking the time.

Could you please remove the addition of BLOCKS.EMBEDDED_ASSET from this PR, and perhaps open another PR for it? We can then discuss the implementation of this block separately 🙂.

@KeyboardRage KeyboardRage requested a review from tolgap March 1, 2023 13:02
Copy link
Member

@tolgap tolgap left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you @KeyboardRage. I'll release this soon.

@tolgap tolgap merged commit f115492 into paramander:master Mar 1, 2023
@tolgap
Copy link
Member

tolgap commented Mar 1, 2023

@KeyboardRage released as v3.1.0! I also added a constraint for @contentful/rich-text-types: ^15.14.1 where the SUB and SUPER marks were introduced.

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