-
Notifications
You must be signed in to change notification settings - Fork 16
fix(mdxish): fix magic blocks in lists #1274
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
base: next
Are you sure you want to change the base?
fix(mdxish): fix magic blocks in lists #1274
Conversation
…to falco/mdxish-fix-magic-blocks-in-lists
| }); | ||
|
|
||
| // TODO: unskip this test once recipe magic blocks are correctly supported | ||
| it.skip('should restore recipe block inside a list item', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this and the test in L245 would only be unskipped once this PR (#1273) gets merged in!
| expect(tableElement!.tagName).toBe('table'); | ||
| }); | ||
|
|
||
| // TODO: unskip this test once embed magic blocks are supported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will be unskipped once #1258 is merged in!
| }); | ||
|
|
||
| // TODO: unskip this test once callout magic blocks are correctly supported | ||
| it.skip('should restore callout block inside a list item', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a small issue with callout magic blocks, Ive created a ticket here. will unskip this once that is resolved
…to falco/mdxish-fix-magic-blocks-in-lists
| }); | ||
| }); | ||
|
|
||
| it('should convert html content inside table cells as nodes in the ast', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this test & the one in line 109 deleted?
| // Some extra children are added to the AST by the mdxish wrapper | ||
| expect(ast.children).toHaveLength(4); | ||
| expect(ast.children[2].type).toBe('element'); | ||
| expect(ast.children).toHaveLength(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks the AST looks cleaner
🧰 Changes
Make sure all types of magic blocks follow lists when they are listed
🧬 QA & Testing