Create preset for wrapping tags with tables

This commit is contained in:
Kiryl
2022-06-24 17:12:21 +03:00
parent d91f6aba4a
commit f690412f5c
2 changed files with 71 additions and 97 deletions

View File

@@ -115,8 +115,13 @@ class LiveCartaConfig:
r"(^h[1-9]$)": ["list-style-type"]
}
WRAP_TAGS_WITH_TABLE = {
("div",) :["width", "border", "bgcolor"],
("section", "blockquote",) : ("class", r"feature[1234]"),
}
REPLACE_REGEX_WITH_LIVECARTA_CORRESPOND_TAGS = {
(r"^h[6-9]$", "figure$", "section$"): "p",
(r"^h[6-9]$", "^figure$", "^section$", "^div$"): "p",
("^aside$",): "blockquote",
("^header$", "^footer$"): "span",
("^b$",): "strong",