Commit c8cab85b authored by gaojiuli's avatar gaojiuli

Remove <b> and <i> from BLOCK_ELEMENTS

parent 99cc0ab8
...@@ -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>
""" """
......
...@@ -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>',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment