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

which caused spacing between list items increased


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

The spacing between list items behave well.

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
If we have extra empty line in listitem, we will get hast
which caused spacing between list items increased
If we remove the extra empty line, we will get hast below which do not have paragraph tag
The spacing between list items behave well.
related code:
mdx-rs/crates/mdx_rs/src/mdast_util_to_hast.rs
Lines 711 to 716 in 18ad02b
This is forked from https://github.com/wooorm/mdxjs-rs