You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
300 B
23 lines
300 B
1 week ago
|
var inline = {
|
||
|
abbr: 1,
|
||
|
b: 1,
|
||
|
big: 1,
|
||
|
code: 1,
|
||
|
del: 1,
|
||
|
em: 1,
|
||
|
i: 1,
|
||
|
ins: 1,
|
||
|
label: 1,
|
||
|
q: 1,
|
||
|
small: 1,
|
||
|
span: 1,
|
||
|
strong: 1,
|
||
|
sub: 1,
|
||
|
sup: 1
|
||
|
}
|
||
|
module.exports = {
|
||
|
use: function(item) {
|
||
|
return !item.c && !inline[item.name] && (item.attrs.style || '').indexOf('display:inline') == -1
|
||
|
}
|
||
|
}
|