Skip to content

Commit a8b3831

Browse files
committed
[ 3.178s] 300 tests run: 297 passed, 3 failed, 1 skipped
1 parent 8a8268e commit a8b3831

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/nodes.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,12 @@ impl AstNode {
798798
self.node_id().insert_before(node.node_id(), arena);
799799
}
800800

801+
#[inline]
802+
/// TODO
803+
pub fn detach(&self, arena: &mut Arena<Ast>) -> () {
804+
self.node_id().detach(arena);
805+
}
806+
801807
#[inline]
802808
/// TODO
803809
pub fn remove_self(&self, arena: &mut Arena<Ast>) -> () {

src/parser/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,7 @@ where
23172317
// If the node before the paragraph is a description list, the item
23182318
// is added to it. If not, create a new list.
23192319

2320-
last_child.remove_subtree(&mut self.arena);
2320+
last_child.detach(&mut self.arena);
23212321
let last_child_sourcepos = last_child.get(self.arena).sourcepos;
23222322

23232323
// TODO: description list sourcepos has issues.

0 commit comments

Comments
 (0)