How can I make multiple rows in a MultiMarkdown table cell?

I am using Text :: MultiMarkdown to print with Perl in HTML.

I would like to create a table in which some of the cells contain several rows, each in a separate row inside the cell (see "four five six" in the figure below). sample table

Can I do it?

+1
source share
1 answer

Text :: MultiMarkdown skips some HTML so you can use <br> tags:

 print Text::MultiMarkdown::markdown(q{ Header 1 | Header 2 -------- | --------------------------- One line | First line<br />Second line }); 

This produces a table body like this:

 <tr> <td>One line</td> <td>First line<br />Second line</td> </tr> 

Which seems to be what you are looking for.

+4
source

All Articles