Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tomd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Чумбаев Максим
tomd
Commits
c8cab85b
Commit
c8cab85b
authored
May 27, 2017
by
gaojiuli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove <b> and <i> from BLOCK_ELEMENTS
parent
99cc0ab8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
test_tomd.py
test_tomd.py
+0
-1
tomd.py
tomd.py
+1
-3
No files found.
test_tomd.py
View file @
c8cab85b
...
@@ -28,7 +28,6 @@ string = """
...
@@ -28,7 +28,6 @@ string = """
<b>bold</b>
<b>bold</b>
<i>italic</i>
<i>italic</i>
<b><i>bold italic</i></b>
<b><i>bold italic</i></b>
</p>
</p>
"""
"""
...
...
tomd.py
View file @
c8cab85b
...
@@ -36,9 +36,7 @@ BlOCK_ELEMENTS = {
...
@@ -36,9 +36,7 @@ BlOCK_ELEMENTS = {
'ol'
:
'<ol.*?>(.*?)</ol>'
,
'ol'
:
'<ol.*?>(.*?)</ol>'
,
'block_code'
:
'<pre.*?><code.*?>(.*?)</code></pre>'
,
'block_code'
:
'<pre.*?><code.*?>(.*?)</code></pre>'
,
'p'
:
'<p
\
s.*?>(.*?)</p>'
,
'p'
:
'<p
\
s.*?>(.*?)</p>'
,
'p_with_out_class'
:
'<p>(.*?)</p>'
,
'p_with_out_class'
:
'<p>(.*?)</p>'
}
'b'
:
'<b>(.*?)</b>'
,
'i'
:
'<i>(.*?)</i>'
}
INLINE_ELEMENTS
=
{
INLINE_ELEMENTS
=
{
'b'
:
'<b>(.*?)</b>'
,
'b'
:
'<b>(.*?)</b>'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment