Commit d526f17c authored by gaojiuli's avatar gaojiuli

Remove i,b,del from BLOCK_ELEMENTS,there is a bug.

if i put those i,b,del tag into BLOCK_ELEMENTS, they would be parsed twice.
parent 786673c3
...@@ -47,10 +47,7 @@ BlOCK_ELEMENTS = { ...@@ -47,10 +47,7 @@ BlOCK_ELEMENTS = {
'p': '<p\s.*?>(.*?)</p>', 'p': '<p\s.*?>(.*?)</p>',
'p_with_out_class': '<p>(.*?)</p>', 'p_with_out_class': '<p>(.*?)</p>',
'thead': '<thead.*?>(.*?)</thead>', 'thead': '<thead.*?>(.*?)</thead>',
'tr': '<tr>(.*?)</tr>', 'tr': '<tr>(.*?)</tr>'
'b': '<b>(.*?)</b>',
'i': '<i>(.*?)</i>',
'del': '<del>(.*?)</del>'
} }
INLINE_ELEMENTS = { INLINE_ELEMENTS = {
......
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