我知道GitHub flavoured Markdown有一个表格扩展,提供了这个功能,并且有一些用于格式化表格的Visual Studio Code扩展(在此处和此处)。但是它们只是很好地布局了文本。我想在预览窗格中显示一个表格。
在Visual Studio Code中如何实现Markdown中的表格?
原始的Markdown规则如下:
For any markup that is not covered by Markdown's syntax, you simply use HTML itself. There's no need to preface it or delimit it to indicate that you're switching from Markdown to HTML; you just use the tags.
The only restrictions are that block-level HTML elements -- e.g.
<div>
,<table>
,<pre>
,<p>
, etc. -- must be separated from surrounding content by blank lines, and the start and end tags of the block should not be indented with tabs or spaces. Markdown is smart enough not to add extra (unwanted)<p>
tags around HTML block-level tags.For example, to add an HTML table to a Markdown article:
This is a regular paragraph. <table> <tr> <td>Foo</td> </tr> </table> This is another regular paragraph.
Note that Markdown formatting syntax is not processed within block-level HTML tags. E.g., you can't use Markdown-style
*emphasis*
inside an HTML block.