Merge "Setup htmlBlacklist and add rule for read-mode MW references"

This commit is contained in:
jenkins-bot 2016-11-17 17:30:45 +00:00 committed by Gerrit Code Review
commit c790944eb0

View file

@ -102,6 +102,10 @@ ve.init.mw.Target.static.importRules = {
// Nodes
'article', 'section', 'div', 'alienInline', 'alienBlock', 'comment'
],
htmlBlacklist: {
remove: [ 'sup.reference:not( [typeof] )' ],
unwrap: [ 'fieldset', 'legend' ]
},
removeOriginalDomElements: true,
nodeSanitization: true
},