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):

Header1 Header2
Cell 1.1
  • Item 1.2.1
  • Item 1.2.2

Cell 2.1 | Cell 2.2

Expected is:

Header1 Header2
Cell 1.1
  • Item 1.2.1
  • Item 1.2.2
Cell 2.1 Cell 2.2

Comments

yop’s picture

Issue summary: View changes
yop’s picture

Issue summary: View changes
frjo’s picture

Status: Active » Closed (works as designed)

The rendering of the Markdown code is done by the PHP Markdown library, http://michelf.ca/projects/php-markdown/. This module is only a wrapper to integrate it with Drupal. For Drupal 8, and maybe for a 7.x-2.x version as well, it will be possible to use different Markdown version (there are a lot of them).

If you know one that works with your example please let my know.

yop’s picture

Thanks for the reply. Looks like parsedown works for this use case:

http://parsedown.org/demo