Eclipse Markdown表未呈现 [英] Eclipse Markdown Tables not rendering

查看:231
本文介绍了Eclipse Markdown表未呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在已经为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等支持),但是 支持表格的WikiText AsciiDoc编辑器).

I have tried four different Markdown editors for Eclipse right now, but none of them is able to render tables in the preview; they are always flat.

A simple table like

|hans|pans|
|:---|:---|
|1   |2   |

renders like

|hans|pans| |:---|:---| |1 |2 |

I know that the syntax is correct, since it renders fine in any other markdown tool outside eclipse. FluentMark even offers a table editor, which also works fine.

Since I did not find anything useful by searching the internet, I came to the conclusion that the problem might be connected to my local installation.

And since all plugins I tried have the same problem, it might be some common library which is used by all the plugins.

I'm using Centos 7 and Eclipse 2019-09 R (4.13.0). But I have seen the same behavior on many other Linux/Eclipse installations.

Any hint that might help me solve this problem is appreciated.

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆