little changes in epub_presets.json

This commit is contained in:
Kiryl
2022-09-21 20:11:31 +03:00
parent 6389746081
commit f7a37b132f

View File

@@ -46,14 +46,14 @@
"preset_name": "replacer", "preset_name": "replacer",
"rules": [ "rules": [
{ {
"tags": ["^h[6-9]$", "^figure$", "^section$", "^div$"], "tags": ["^h[6-9]$", "^figure$", "^section$", "^div$", "blockquote"],
"condition": null, "condition": null,
"tag_to_replace": "p" "tag_to_replace": "p"
}, },
{ {
"tags": ["^aside$"], "tags": ["^aside$"],
"condition": null, "condition": null,
"tag_to_replace": "blockquote" "tag_to_replace": "div"
}, },
{ {
"tags": ["^header$", "^footer$"], "tags": ["^header$", "^footer$"],
@@ -69,6 +69,11 @@
}, },
"tag_to_replace": "span" "tag_to_replace": "span"
}, },
{
"tags": ["^em$"],
"condition": null,
"tag_to_replace": "i"
},
{ {
"tags": ["^b$"], "tags": ["^b$"],
"condition": null, "condition": null,
@@ -105,6 +110,7 @@
{ {
"tags": [ "tags": [
"^section$", "^section$",
"^blockquote$",
"^article$", "^article$",
"^figcaption$", "^figcaption$",
"^main$", "^main$",
@@ -135,6 +141,11 @@
"attrs": null "attrs": null
}, },
"tag_to_insert": "code" "tag_to_insert": "code"
},
{
"tags": ["^h[1-5]$"],
"condition": null,
"tag_to_insert": "strong"
} }
] ]
} }