Skip to content
Snippets Groups Projects
Commit 7802582f authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

allow simple underline

closes #190
parent 91fbd39c
No related branches found
No related tags found
1 merge request!257allow simple underline
Pipeline #153979 passed
...@@ -216,6 +216,8 @@ __MARKDOWN_WHITE_LIST = [ ...@@ -216,6 +216,8 @@ __MARKDOWN_WHITE_LIST = [
'</center>', '</center>',
'<code>', '<code>',
'</code>', '</code>',
'<u>',
'</u>',
] ]
] ]
......
...@@ -115,12 +115,15 @@ class AllTestCase(TooledTestCase): ...@@ -115,12 +115,15 @@ class AllTestCase(TooledTestCase):
"<script", "<script",
"<meta", "<meta",
"<img", "<img",
"<u",
]: ]:
self.assertNotIn(banned_tag, markdown(f'{banned_tag} foo="bar"/>')) self.assertNotIn(banned_tag, markdown(f'{banned_tag} foo="bar"/>'))
for allowed_tag in [ for allowed_tag in [
"<center>", "<center>",
"<br>", "<br>",
"<br/>", "<br/>",
"<u>",
"</u>",
"<hr>", "<hr>",
"<hr/>", "<hr/>",
]: ]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment