markdown editor fixes

This commit is contained in:
vabene1111
2025-07-06 14:40:52 +02:00
parent 211bf226eb
commit 9fc6e775aa
3 changed files with 67 additions and 5 deletions

View File

@@ -6,8 +6,10 @@ class StyleTreeprocessor(Treeprocessor):
def run_processor(self, node):
for child in node:
# if child.tag == "table":
# child.set("class", "markdown-body")
if child.tag == "table":
child.set("class", "markdown-table")
if child.tag == "th" or child.tag == "td":
child.set("class", "markdown-table-cell")
if child.tag == "img":
child.set("class", "img-fluid")
self.run_processor(child)