我需要生成一个markdown表,其中一列是使用span的样式。跨度应如下所示:
然而,当我在markdown中添加它时,样式被忽略(我认为)。 如何解决这个问题?
我在这里的尝试:
**Team**|**Build status**|**Coverage status**|**Coverage details**|**Contribution rate**
-----|-----|-----|-----|----
[W09-C1](https://github.com/CS2103AUG2016-W09-C1/main/blob/master/docs/AboutUs.md)|[](https://travis-ci.org/CS2103AUG2016-W09-C1/main)|[](https://coveralls.io/github/CS2103AUG2016-W09-C1/main?branch=master)|<span style="display:inline-block; text-align: center; width:143px; background: #50FC00; border-radius: 6px 0px 0px 6px; white-space:nowrap;">1435</span><span style="display:inline-block; text-align: center; width:47px; background: #FC5000; border-radius: 0px 0px 0px 0px; white-space:nowrap;">476</span><span style="display:inline-block; text-align: center; width:172.2px; background: #A900A9; border-radius: 0px 6px 6px 0px; white-space:nowrap;">1722</span>|[Contribution rate](https://github.com/CS2103AUG2016-W09-C1/main/graphs/contributors?from=2016-09-30&to=2016-11-08&type=c)
[W09-C2](https://github.com/CS2103AUG2016-W09-C2/main/blob/master/docs/AboutUs.md)|[](https://travis-ci.org/CS2103AUG2016-W09-C2/main)|[](https://coveralls.io/github/CS2103AUG2016-W09-C2/main?branch=master)|<span style="display:inline-block; text-align: center; width:242px; background: #50FC00; border-radius: 6px 0px 0px 6px; white-space:nowrap;">2424</span><span style="display:inline-block; text-align: center; width:31px; background: #FC5000; border-radius: 0px 0px 0px 0px; white-space:nowrap;">314</span><span style="display:inline-block; text-align: center; width:290.88px; background: #A900A9; border-radius: 0px 6px 6px 0px; white-space:nowrap;">2908</span>|[Contribution rate](https://github.com/CS2103AUG2016-W09-C2/main/graphs/contributors?from=2016-09-30&to=2016-11-08&type=c)
我得到了什么:
答案 0 :(得分:3)
官方syntax rules州:
Markdown的语法仅用于一个目的:用作网络写作的格式。
Markdown不是HTML的替代品,甚至不接近它。它的语法非常小,仅对应于HTML标签的一小部分。我们的想法不是创建一种语法,以便更容易插入HTML标记。在我看来,HTML标签已经很容易插入。 Markdown的想法是让阅读,编写和编辑散文变得容易。 HTML是一种发布格式; Markdown是一种写作形式。因此, Markdown的格式化语法仅解决可以用纯文本传达的问题 。
对于Markdown语法未涵盖的任何标记,您只需使用HTML本身。
由于它不是“发布格式”,因此提供一种样式化文本的方法对于Markdown来说是超出范围的。也就是说,因为你可以包含原始HTML(而HTML是一种发布格式)并非不可能。例如,以下Markdown文本:
Some Markdown text with <span style="color:blue">some *blue* text</span>.
会产生以下HTML:
<p>Some Markdown text with <span style="color:blue">some <em>blue</em> text</span>.</p>
现在,StackOverflow(可能还有GitHub)会删除原始HTML(作为安全措施),所以你在这里放弃了样式,但它应该适用于任何标准的Markdown实现。