Skip to content

[Bug] transform_list_item generate extra paragraph tag #46

Open
@Timeless0911

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions