Skip to content

Commit 1b81f7d

Browse files
authored
Update configuration.rst examples to include new sub-extensions (#53)
1 parent 625c059 commit 1b81f7d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/configuration.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ sanitization rules:
2222
"Bold": True,
2323
"Italic": True,
2424
"BulletList": True,
25+
"ListItem": True,
2526
"Link": True,
2627
},
2728
sanitize=True, # Server side sanitization is strongly recommended.
@@ -74,6 +75,7 @@ want to enable in your editor:
7475
},
7576
"BulletList": True,
7677
"OrderedList": True,
78+
"ListItem": True, # Used by BulletList and OrderedList
7779
"Blockquote": True,
7880
7981
# Advanced extensions
@@ -82,6 +84,9 @@ want to enable in your editor:
8284
"protocols": ["http", "https", "mailto"], # Limit protocols
8385
},
8486
"Table": True,
87+
"TableRow": True,
88+
"TableHeader": True,
89+
"TableCell": True,
8590
8691
# Editor capabilities
8792
"History": True, # Enables undo/redo
@@ -100,7 +105,6 @@ You can also pass additional configurations to extensions:
100105
"Italic": True,
101106
"Heading": {"levels": [1, 2, 3]}, # Only allow H1-H3
102107
"Link": {"enableTarget": False}, # Disable "open in new tab"
103-
"Table": True,
104108
}
105109
)
106110

0 commit comments

Comments
 (0)