diff options
Diffstat (limited to '')
-rw-r--r-- | src/to_mdast.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/to_mdast.rs b/src/to_mdast.rs index 4d2ca76..e76bad5 100644 --- a/src/to_mdast.rs +++ b/src/to_mdast.rs @@ -1430,7 +1430,9 @@ fn on_exit_list_item_value(context: &mut CompileContext) { if let Node::List(node) = context.tail_penultimate_mut() { debug_assert!(node.ordered, "expected list to be ordered"); - node.start = Some(start); + if node.start.is_none() { + node.start = Some(start); + } } else { unreachable!("expected list on stack"); } |