forked from LiveCarta/BookConverter
Change presets.json (add attr_replacer)
This commit is contained in:
@@ -61,6 +61,23 @@
|
|||||||
"tags": ["^b$"],
|
"tags": ["^b$"],
|
||||||
"condition": null,
|
"condition": null,
|
||||||
"tag_to_replace": "strong"
|
"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",
|
"main",
|
||||||
"body",
|
"body",
|
||||||
"html",
|
"html",
|
||||||
|
"svg",
|
||||||
"li > p"
|
"li > p"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user