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

Merge branch 'add-underline-to-md' into 'master'

allow simple underline

Closes #190

See merge request !257
parents 91fbd39c 7802582f
No related branches found
No related tags found
1 merge request!257allow simple underline
Pipeline #153984 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