forked from LiveCarta/BookConverter
Change presets.json (add attr_replacer)
This commit is contained in:
@@ -61,6 +61,23 @@
|
||||
"tags": ["^b$"],
|
||||
"condition": null,
|
||||
"tag_to_replace": "strong"
|
||||
},
|
||||
{
|
||||
"tags": ["^image$"],
|
||||
"condition": null,
|
||||
"tag_to_replace": "img"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"preset_name": "attr_replacer",
|
||||
"rules": [
|
||||
{
|
||||
"attr": "xlink:href",
|
||||
"condition": {
|
||||
"tags": ["img"]
|
||||
},
|
||||
"attr_to_replace": "src"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -74,6 +91,7 @@
|
||||
"main",
|
||||
"body",
|
||||
"html",
|
||||
"svg",
|
||||
"li > p"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user