mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-24 18:58:42 +00:00
Merge "Setup htmlBlacklist and add rule for read-mode MW references"
This commit is contained in:
commit
c790944eb0
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue