gpt4 book ai didi

visual-studio-code - 是否可以使用 Visual Studio Code Markdown 创建和预览表格?

转载 作者:行者123 更新时间:2023-12-01 04:47:18 24 4
gpt4 key购买 nike

我正在使用 Visual Studio Code 使用 its Markdown support 写一些笔记.我想添加一些表格,但找不到方法。似乎 Visual Studio Code 实现了 CommonMark其中不包括规范中的表格。

我知道 GitHub flavor 的 Markdown 有 a table extension它提供了此功能,并且有几个表格格式化程序 Visual Studio Code 扩展( herehere ),但它们只是很好地布局文本。我想要一个表格显示在预览 Pane 中。

关于如何在 Visual Studio Code Markdown 中实现某些表格的任何建议?

最佳答案

原版Markdown rules状态:

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.

关于visual-studio-code - 是否可以使用 Visual Studio Code Markdown 创建和预览表格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45692839/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com