在markdown中创建没有标题的表 [英] Create table without header in markdown
问题描述
是否可以在markdown中创建没有标题的表?
Is it possible to create a table without a header in markdown?
HTML将如下所示:
The HTML would look like this:
<table>
<tr>
<td>Key 1</td>
<td>Value 1</td>
</tr>
<tr>
<td>Key 2</td>
<td>Value 2</td>
</tr>
</table>
推荐答案
大多数降价解析器不支持没有标题的表。这意味着标题的分隔线是强制性的。
Most markdown parsers don't support tables without headers. That means the separation line for headers is mandatory.
- multimarkdown
- Maruku :ruby中的流行实现
- byword :所有表格必须以一行或多行标题开头
-
PHP Markdown Extra 第二行包含标题和内容之间的强制分隔线
- multimarkdown
- Maruku: A popular implementation in ruby
- byword: "All tables must begin with one or more rows of headers"
PHP Markdown Extra "second line contains a mandatory separator line between the headers and the content"
RDiscount 使用PHP Markdown Extra语法。
- Kramdown :Ruby中的解析器
- 文本:: MultiMarkdown :Perl CPAN模块。
- MultiMarkdown :Windows应用程序。
- ParseDown Extra :PHP中的解析器。
- Pandoc :用Haskell编写的命令行的文档转换器(通过其支持无标题表)
simple_tables
和multiline_tables
extensions)
- Kramdown: A parser in Ruby
- Text::MultiMarkdown: Perl CPAN module.
- MultiMarkdown: Windows application.
- ParseDown Extra: A parser in PHP.
- Pandoc: A document converter for the command line written in Haskell (supports header-less tables via its
simple_tables
andmultiline_tables
extensions)
如果您能够更改HTML输出的CSS,您可以如何曾经利用:empty
伪类来隐藏空标题并使其看起来根本没有标题。
If you're able to change the CSS of the HTML output you can however leverage the :empty
pseudo class to hide an empty header and make it look like there is no header at all.
这篇关于在markdown中创建没有标题的表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!