Skip to content

Conversation

@maximilianfalco
Copy link
Contributor

PR App Fix RM-XYZ

🧰 Changes

Make sure all types of magic blocks follow lists when they are listed

Before After
Screenshot 2025-12-17 at 20 17 49 Screenshot 2025-12-17 at 21 15 29

🧬 QA & Testing

});

// TODO: unskip this test once recipe magic blocks are correctly supported
it.skip('should restore recipe block inside a list item', () => {
Copy link
Contributor Author

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
Copy link
Contributor Author

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', () => {
Copy link
Contributor Author

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

});
});

it('should convert html content inside table cells as nodes in the ast', () => {
Copy link
Contributor

@eaglethrost eaglethrost Jan 1, 2026

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);
Copy link
Contributor

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

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.

2 participants