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

[Bug] transform_list_item generate extra paragraph tag #46

Open
Timeless0911 opened this issue Jun 4, 2024 · 0 comments
Open

[Bug] transform_list_item generate extra paragraph tag #46

Timeless0911 opened this issue Jun 4, 2024 · 0 comments

Comments

@Timeless0911
Copy link
Collaborator

image

If we have extra empty line in listitem, we will get hast

image

which caused spacing between list items increased

image

image

If we remove the extra empty line, we will get hast below which do not have paragraph tag

image

The spacing between list items behave well.

image

related code:

fn transform_list_item(
state: &mut State,
node: &mdast::Node,
parent: Option<&mdast::Node>,
list_item: &mdast::ListItem,
) -> Result {

This is forked from https://github.com/wooorm/mdxjs-rs

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

No branches or pull requests

1 participant