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

fix: depth issues in BulletedList and NumberedList #418

Merged

Conversation

gloaysa
Copy link

@gloaysa gloaysa commented Dec 28, 2024

Description

BulletedList and NumberedList plugin were not ready to handle nested ul/ol elements inside of it.

With this change, a new function that specialises in deserialising list elements is created. We parse each li element found inside a ul/ol element recursively, creating an array of descendants of type list-item for each li found.

Fixes #345

Type of change

Please tick the relevant option.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • I have performed a self-review of my own code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings

Screenshots:

image

gloaysa and others added 12 commits October 12, 2024 19:02
## Description

Added the ability to add Loom & Wistia videos in the Video plugin. Note that I'm not used to Typescrpt at all, so I might need some help with this if you see issues.

Fixes # (issue)

## Type of change

Please tick the relevant option.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

## Checklist:

- [ ] I have performed a self-review of my own code
- [ ] I have commented on my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have checked my code and corrected any misspellings
* update email examples
## Description

Added the ability to add Loom & Wistia videos in the Video plugin. Note that I'm not used to Typescrpt at all, so I might need some help with this if you see issues.

Fixes # (issue)

## Type of change

Please tick the relevant option.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

## Checklist:

- [ ] I have performed a self-review of my own code
- [ ] I have commented on my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have checked my code and corrected any misspellings

* fixes for loom and wistia providers

---------

Co-authored-by: 5andu <[email protected]>
# Conflicts:
#	packages/core/exports/src/html/deserialize.ts
@gloaysa
Copy link
Author

gloaysa commented Dec 28, 2024

The original PR (#347) was closed after merging v4.9.4 branch.
I'm opening a new one, after applying the suggested changes on the original review, plus adding a new function to clean up empty nodes.

The sanitizeTextNodes function is needed since after parsing the markdown, the new line breaks were being added as new block elements, adding empty lines to the list. Removing brackets from TodoLists were also added in this function to keep consistency.

@Darginec05 Darginec05 changed the base branch from master to v4.9.4 December 30, 2024 18:44
@Darginec05
Copy link
Collaborator

Well done!

@Darginec05 Darginec05 merged commit 16e4625 into yoopta-editor:v4.9.4 Dec 30, 2024
@gloaysa gloaysa deleted the fix-depth-issues-bulleted-list branch December 30, 2024 18:46
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.

[BUG] Depth issues with md serialize/deserialize
4 participants