Fix span wrapper processing

This commit is contained in:
Kibzik
2023-03-15 20:44:37 +03:00
parent 047bfeca20
commit dd49bfd76c
2 changed files with 8 additions and 6 deletions

View File

@@ -30,12 +30,13 @@ class LiveCartaConfig:
# Dictionary mapping HTML tags to CSS style attributes that can be contained within them
TAGS_TO_STYLE_ATTRS_CAN_BE_IN_TAG = {
"^p$": ["text-align", "text-indent", "border-bottom", "border-top", "border-left", "border-right",
"background-color"],
"background-color"],
r"(^h[1-9]$)": ["list-style-type", "border-bottom", "border-top", "border-left", "border-right",
"background-color"],
"^div$": ["border-bottom", "border-top", "border-left", "border-right", "background-color"],
"^li$": ["text-align", "list-style-type"],
"^ul$": ["list-style-type"],
"^ol$": ["list-style-type"],
r"(^h[1-9]$)": ["list-style-type", "border-bottom", "border-top", "border-left", "border-right",
"background-color", "color"]
"^ol$": ["list-style-type"]
}
# Dictionary mapping CSS style attribute names to names that should replace them