Little changes

This commit is contained in:
Kibzik
2023-03-16 16:59:16 +03:00
parent e0e9b89cb3
commit 90cb8fc665
2 changed files with 3 additions and 4 deletions

View File

@@ -21,7 +21,7 @@
"preset_name": "replacer",
"rules": [
{
"tags": ["^h[6-9]$", "^figure$", "^section$", "blockquote"],
"tags": ["^h[6-9]$", "^figure$", "^section$", "^blockquote$"],
"condition": null,
"tag_to_replace": {
"name": "p"

View File

@@ -30,10 +30,9 @@ 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", "background"],
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"],
"background-color", "background"],
"^li$": ["text-align", "list-style-type"],
"^ul$": ["list-style-type"],
"^ol$": ["list-style-type"]