Change presets.json (add attr_replacer)

This commit is contained in:
Kiryl
2022-07-20 15:47:37 +03:00
parent ea4dd77155
commit 618d57767d

View File

@@ -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"
] ]
} }