Commit 49d84459 authored by p's avatar p

Elements with parameters

parent d90b10c4
...@@ -38,7 +38,7 @@ string = """ ...@@ -38,7 +38,7 @@ string = """
<table> <table>
<thead> <thead>
<tr> <tr class="1">
<th>th1</th> <th>th1</th>
<th>th2</th> <th>th2</th>
</tr> </tr>
......
...@@ -48,16 +48,16 @@ BlOCK_ELEMENTS = { ...@@ -48,16 +48,16 @@ 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>'
} }
INLINE_ELEMENTS = { INLINE_ELEMENTS = {
'td': '<td>(.*?)</td>', 'td': '<td.*?>(.*?)</td>',
'tr': '<tr>(.*?)</tr>', 'tr': '<tr.*?>(.*?)</tr>',
'th': '<th>(.*?)</th>', 'th': '<th.*?>(.*?)</th>',
'b': '<b>(.*?)</b>', 'b': '<b.*?>(.*?)</b>',
'i': '<i>(.*?)</i>', 'i': '<i.*?>(.*?)</i>',
'del': '<del>(.*?)</del>', 'del': '<del.*?>(.*?)</del>',
'inline_p': '<p\s.*?>(.*?)</p>', 'inline_p': '<p\s.*?>(.*?)</p>',
'inline_p_with_out_class': '<p>(.*?)</p>', 'inline_p_with_out_class': '<p>(.*?)</p>',
'code': '<code.*?>(.*?)</code>', 'code': '<code.*?>(.*?)</code>',
......
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