Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown generated for tables cannot be parsed by other parsers #40

Open
olipo186 opened this issue Jan 25, 2020 · 0 comments
Open

Markdown generated for tables cannot be parsed by other parsers #40

olipo186 opened this issue Jan 25, 2020 · 0 comments

Comments

@olipo186
Copy link

Hi,

I'm using https://github.com/outline/rich-markdown-editor and have encountered a problem in the way that tables are rendered to markdown.

Currently, when using the editor to create a table, the generated markdown can end up looking like this;

Hello
| a | b |
|---|---|
| c | d |
world

Unfortunately, this markdown cannot be parsed by most markdown parsers (please see this comparison made with Babelmark showing that it only works in 4 implementations).

As it seems, most markdown parsers expect tables to be wrapped by newlines. By wrapping the table in newline characters, the same table is rendered correctly in 14 implementations. Some implementations still fails to render the table however, but this is because those markdown implementations lack table support whatsoever.

Hello

| a | b |
|---|---|
| c | d |

world

I think that rich-markdown-editor and slate-md-editor should set a goal to generate markdown that complies with established conventions and wide used specifications (such as the CommonMark spec) whenever possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant