如何在MultiMarkdown中使表格单元格跨多行? [英] How can I make table cell span multiple lines in MultiMarkdown?
本文介绍了如何在MultiMarkdown中使表格单元格跨多行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Text :: MultiMarkdown 从Perl打印到HTML
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).
我可以这样做吗?
推荐答案
Text :: MultiMarkdown直接传递一些HTML,以便您可以使用<br>
标记:
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>
您似乎正在寻找什么.
这篇关于如何在MultiMarkdown中使表格单元格跨多行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文