diff --git a/modules/ve-mw/dm/nodes/ve.dm.MWHeadingNode.js b/modules/ve-mw/dm/nodes/ve.dm.MWHeadingNode.js index a320d1701b..179a428ec3 100644 --- a/modules/ve-mw/dm/nodes/ve.dm.MWHeadingNode.js +++ b/modules/ve-mw/dm/nodes/ve.dm.MWHeadingNode.js @@ -29,7 +29,7 @@ OO.inheritClass( ve.dm.MWHeadingNode, ve.dm.HeadingNode ); ve.dm.MWHeadingNode.static.name = 'mwHeading'; // Headings in wikitext only work in some contexts, they're impossible e.g. in list items -ve.dm.MWHeadingNode.static.suggestedParentNodeTypes = [ 'document', 'tableCell' ]; +ve.dm.MWHeadingNode.static.suggestedParentNodeTypes = [ 'document', 'tableCell', 'div' ]; ve.dm.MWHeadingNode.static.handlesOwnChildren = true;