diff --git a/includes/ApiDiscussionToolsEdit.php b/includes/ApiDiscussionToolsEdit.php index 711f3754e..f67a33f79 100644 --- a/includes/ApiDiscussionToolsEdit.php +++ b/includes/ApiDiscussionToolsEdit.php @@ -247,6 +247,8 @@ class ApiDiscussionToolsEdit extends ApiBase { $container = DOMCompat::getBody( $doc ); + CommentUtils::unwrapParsoidSections( $container ); + $threadItemSet = $this->commentParser->parse( $container, $title->getTitleValue() ); if ( $commentId ) {