Eclipse Markdown表未呈现 [英] Eclipse Markdown Tables not rendering
问题描述
我现在已经为Eclipse尝试了四种不同的Markdown编辑器,但是它们都无法在预览中呈现表格.他们总是平坦的.
一个简单的表
|hans|pans|
|:---|:---|
|1 |2 |
喜欢
|hans|pans| |:---|:---| |1 |2 |
我知道语法是正确的,因为它在eclipse之外的任何其他markdown工具中都可以正常显示. FluentMark甚至提供了一个表格编辑器,它也可以正常工作.
由于我没有找到任何有用的东西来搜索互联网,因此得出的结论是该问题可能与本地安装有关.
由于我尝试过的所有插件都存在相同的问题,因此可能是所有插件都使用的一些通用库.
我正在使用Centos 7和Eclipse 2019-09 R(4.13.0).但是我在许多其他Linux/Eclipse安装上也看到了相同的行为.
感谢任何可以帮助我解决此问题的提示.
根据 Markdown规范,通过所谓的 HTML块 如下:
<table>
<tr><th>hans</th><th>pans</th></tr>
<tr><td>1</td><td>2</td></tr>
</table>
属于 WikiText 的一部分的Eclipse Markdown编辑器可以正确地呈现此语法. /p>
相反,您使用的 表语法谈论的是广泛使用的Markdown扩展 (例如GitHub,Bitbucket等支持),但是 源代码,为了进行比较,请使用 解决方案
According to the Markdown specification, the correct table syntax via the so-called HTML blocks is as follows:
<table>
<tr><th>hans</th><th>pans</th></tr>
<tr><td>1</td><td>2</td></tr>
</table>
The Eclipse Markdown editor which is part of WikiText renders this syntax correctly.
In contrast, the table syntax you are talking about is a widely used Markdown extension (e.g. supported by GitHub, Bitbucket, etc.), but not supported by the Eclipse WikiText Markdown editor yet, maybe because it is not part of the core Markdown specification (see the source code and for comparison, the WikiText AsciiDoc editor that supports tables).
这篇关于Eclipse Markdown表未呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!