forked from LiveCarta/BookConverter
Change presets structure(several conditions on 1 tag)
This commit is contained in:
@@ -11,15 +11,42 @@
|
||||
{
|
||||
"name": "width",
|
||||
"value": ".*"
|
||||
},
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"tags": ["^div$"],
|
||||
"condition": {
|
||||
"parent_tags": null,
|
||||
"child_tags": null,
|
||||
"attrs": [
|
||||
{
|
||||
"name": "border",
|
||||
"value": ".*"
|
||||
},
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"tags": ["^div$"],
|
||||
"condition": {
|
||||
"parent_tags": null,
|
||||
"child_tags": null,
|
||||
"attrs": [
|
||||
{
|
||||
"name": "style",
|
||||
"value": "border.*"
|
||||
},
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"tags": ["^div$"],
|
||||
"condition": {
|
||||
"parent_tags": null,
|
||||
"child_tags": null,
|
||||
"attrs": [
|
||||
{
|
||||
"name": "bgcolor",
|
||||
"value": ".*"
|
||||
@@ -69,7 +96,7 @@
|
||||
{
|
||||
"tags": ["^code$", "^kbd$", "^var$"],
|
||||
"condition": {
|
||||
"parent_tags": ":not(pre)",
|
||||
"parent_tags": ":not(pre, span)",
|
||||
"child_tags": null,
|
||||
"attrs": null
|
||||
},
|
||||
@@ -99,6 +126,15 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"preset_name": "attrs_remover",
|
||||
"rules": [
|
||||
{
|
||||
"tags": ["^sup$"],
|
||||
"condition": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"preset_name": "attr_replacer",
|
||||
@@ -171,4 +207,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user