File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff 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 > ) -> ( ) {
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments