shuzijun / markdown-editor

IntelliJ Platform A full-featured WYSIWYG editor for markdown
https://plugins.jetbrains.com/plugin/17254-markdown-editor
Apache License 2.0
155 stars 35 forks source link

Tables not formatted in Raw Editor Correctly #50

Closed cwginac closed 1 year ago

cwginac commented 2 years ago

When editing a table, and then looking at the raw source, the table is not formatted correctly. The second row (the row with hyphens) is not aligned with the rest of the table.

For example:

| Section | Key         | Value         | Description |
| --------- | ------------- | --------------- | ------------- |
| example | example_key | example_value | ex_desc     |

I believe it is not accounting for the spaces before and after the hyphens, essentially making that section two characters wider than it should be.

The number of hyphens should be (length of longest cell - 2)

shuzijun commented 2 years ago

waiting for dependencies to update