Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
strass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hub
strass
Commits
7802582f
Commit
7802582f
authored
3 weeks ago
by
Bryan BRANCOTTE
Browse files
Options
Downloads
Patches
Plain Diff
allow simple underline
closes
#190
parent
91fbd39c
No related branches found
Branches containing commit
No related tags found
1 merge request
!257
allow simple underline
Pipeline
#153979
passed
3 weeks ago
Stage: 📦 build
Stage: 🩺 test
Stage: 🚀 deploy
Stage: 🔧 configure
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/strass/strass_app/templatetags/strass_tags.py
+2
-0
2 additions, 0 deletions
src/strass/strass_app/templatetags/strass_tags.py
src/strass/strass_app/tests/test_strass_tags.py
+3
-0
3 additions, 0 deletions
src/strass/strass_app/tests/test_strass_tags.py
with
5 additions
and
0 deletions
src/strass/strass_app/templatetags/strass_tags.py
+
2
−
0
View file @
7802582f
...
@@ -216,6 +216,8 @@ __MARKDOWN_WHITE_LIST = [
...
@@ -216,6 +216,8 @@ __MARKDOWN_WHITE_LIST = [
'
</center>
'
,
'
</center>
'
,
'
<code>
'
,
'
<code>
'
,
'
</code>
'
,
'
</code>
'
,
'
<u>
'
,
'
</u>
'
,
]
]
]
]
...
...
This diff is collapsed.
Click to expand it.
src/strass/strass_app/tests/test_strass_tags.py
+
3
−
0
View file @
7802582f
...
@@ -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/>
"
,
]:
]:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment