Allow headings in divs

Bug: T164453
Change-Id: I986b1b376a592095c94d29a102278d4fde0a621f
This commit is contained in:
Ed Sanders 2017-05-04 12:43:36 +01:00
parent 9b86ebae7f
commit 8e6105fec8

View file

@ -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;