删除粗体文本
Remove bold text
此代码:
[cols="h,h,h,h"]
|===
|Cell in column 1, row 1
|Cell in column 2, row 1
|Cell in column 3, row 1
|Cell in column 4, row 1
|Cell in column 1, row 2
|Cell in column 2, row 2
|Cell in column 3, row 2
|Cell in column 4, row 2
|===
呈现:
如何渲染具有值
的单元格
Cell in column 2, row 2
Cell in column 3, row 2
Cell in column 4, row 2
非粗体格式和白色背景?
我试图让第 1 列和第 1 行带有粗体和背景,但阅读 https://asciidoctor.org/docs/user-manual/#tables 这是我最接近的。
您的 cols
定义表明您有 4 列,所有列的样式均为 headers。
将该行更改为:
[cols="a,a,a,a", options="header"]
a
表示每一列都可以包含 Asciidoc 标记(而不仅仅是纯文本)。 options="header"
导致第一行呈现为 header 行。这样,您的第一行应该是粗体,任何后续行都应该是常规粗细。
此代码:
[cols="h,h,h,h"]
|===
|Cell in column 1, row 1
|Cell in column 2, row 1
|Cell in column 3, row 1
|Cell in column 4, row 1
|Cell in column 1, row 2
|Cell in column 2, row 2
|Cell in column 3, row 2
|Cell in column 4, row 2
|===
呈现:
如何渲染具有值
的单元格Cell in column 2, row 2
Cell in column 3, row 2
Cell in column 4, row 2
非粗体格式和白色背景?
我试图让第 1 列和第 1 行带有粗体和背景,但阅读 https://asciidoctor.org/docs/user-manual/#tables 这是我最接近的。
您的 cols
定义表明您有 4 列,所有列的样式均为 headers。
将该行更改为:
[cols="a,a,a,a", options="header"]
a
表示每一列都可以包含 Asciidoc 标记(而不仅仅是纯文本)。 options="header"
导致第一行呈现为 header 行。这样,您的第一行应该是粗体,任何后续行都应该是常规粗细。