Allow the align property on th and td and add CSS rules for overriding text-alignment

This commit is contained in:
kkthxbye-code 2023-07-23 23:08:08 +02:00 committed by Jeremy Stretch
parent 0276f29067
commit 4b2922312a
5 changed files with 14 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1002,6 +1002,18 @@ div.card-overlay {
padding: 8px;
}
th[align="left"] {
text-align: left;
}
th[align="center"] {
text-align: center;
}
th[align="right"] {
text-align: right;
}
/* Markdown widget */
.markdown-widget {
.nav-link {

View File

@ -519,6 +519,8 @@ def clean_html(html, schemes):
"h1": ["id"], "h2": ["id"], "h3": ["id"], "h4": ["id"], "h5": ["id"], "h6": ["id"],
"a": ["href", "title"],
"img": ["src", "title", "alt"],
"th": ["align"],
"td": ["align"],
}
return bleach.clean(