aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-07-10 00:50:23 +0200
committerGravatar Leon Sandøy <[email protected]>2019-07-10 00:50:23 +0200
commit53c8f64e890fb87c4846035c7c34a49998ae8f4a (patch)
treeb139cd934d0b0a376799db3d403f4feea6d158a6
parentAdding bulma-accordion to the django-simple-bulma extensions list (diff)
Allowing section and article tags in the wiki articles
-rw-r--r--pydis_site/settings.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index 677433e8..d1123073 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -328,3 +328,9 @@ WIKI_MARKDOWN_HTML_STYLES = [
'width',
'height',
]
+
+WIKI_MARKDOWN_HTML_ATTRIBUTES = {
+ 'img': ['class', 'id', 'src', 'alt', 'width', 'height'],
+ 'section': ['class', 'id'],
+ 'article': ['class', 'id'],
+}