开发者

How can I make table cell span multiple lines in MultiMarkdown?

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 sepa开发者_如何学Pythonrate line within the cell (see "four five six" in the picture below).

How can I make table cell span multiple lines in MultiMarkdown?

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
});

It 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜