php-markdown icon indicating copy to clipboard operation
php-markdown copied to clipboard

PHP Markdown Extra: block-level HTML tags inside a cell

Open michelf opened this issue 9 years ago • 0 comments

From https://www.drupal.org/node/2372753

The following example markdown:

Header1 | Header2
----------- | ------------
Cell 1.1 | <ul><li>Item 1.2.1</li><li>Item 1.2.2</li></ul>
Cell 2.1 | Cell 2.2

Results in a broken table as the HTML tag processing breaks the table cell content (new lines):

<table>
<thead>
<tr>
  <th>Header1</th>
  <th>Header2</th>
</tr>
</thead>
<tbody>
<tr>
  <td>Cell 1.1</td>
  <td></td>
</tr>
</tbody>
</table>

<ul><li>Item 1.2.1</li><li>Item 1.2.2</li></ul>

<p>Cell 2.1 | Cell 2.2</p>

michelf avatar Nov 13 '14 21:11 michelf