I'm using Text::MultiMarkdown to print from Perl to HTML.
I would like to create a table where some of the cells contain a few strings, each in a separate line within the cell (see "four five six" in the picture below).
Can I do that?
I'm using Text::MultiMarkdown to print from Perl to HTML.
I would like to create a table where some of the cells contain a few strings, each in a separate line within the cell (see "four five six" in the picture below).
Can I do that?
Text::MultiMarkdown passes some HTML straight through so you can use <br>
tags:
print Text::MultiMarkdown::markdown(q{
Header 1 | Header 2
-------- | ---------------------------
One line | First line<br />Second line
});
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're looking for.