forked from LiveCarta/BookConverter
Little changes
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
"preset_name": "replacer",
|
"preset_name": "replacer",
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"tags": ["^h[6-9]$", "^figure$", "^section$", "blockquote"],
|
"tags": ["^h[6-9]$", "^figure$", "^section$", "^blockquote$"],
|
||||||
"condition": null,
|
"condition": null,
|
||||||
"tag_to_replace": {
|
"tag_to_replace": {
|
||||||
"name": "p"
|
"name": "p"
|
||||||
|
|||||||
@@ -30,10 +30,9 @@ class LiveCartaConfig:
|
|||||||
# Dictionary mapping HTML tags to CSS style attributes that can be contained within them
|
# Dictionary mapping HTML tags to CSS style attributes that can be contained within them
|
||||||
TAGS_TO_STYLE_ATTRS_CAN_BE_IN_TAG = {
|
TAGS_TO_STYLE_ATTRS_CAN_BE_IN_TAG = {
|
||||||
"^p$": ["text-align", "text-indent", "border-bottom", "border-top", "border-left", "border-right",
|
"^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",
|
r"(^h[1-9]$)": ["list-style-type", "border-bottom", "border-top", "border-left", "border-right",
|
||||||
"background-color"],
|
"background-color", "background"],
|
||||||
"^div$": ["border-bottom", "border-top", "border-left", "border-right", "background-color"],
|
|
||||||
"^li$": ["text-align", "list-style-type"],
|
"^li$": ["text-align", "list-style-type"],
|
||||||
"^ul$": ["list-style-type"],
|
"^ul$": ["list-style-type"],
|
||||||
"^ol$": ["list-style-type"]
|
"^ol$": ["list-style-type"]
|
||||||
|
|||||||
Reference in New Issue
Block a user