Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello Mads
I have started an automatic table formatting function. Below is a description, how it works. If you think it is useful for others and would be interested in pulling it in, please let me know. Then i will clean it up according to your contribution guidelines.
Best regards,
Michael
Automatic table formatting
Markdown Editor supports table preview, but layouting them manually in the
text editor is a cumbersome endeavour. But there exists an automatic table
formatting function, which makes the tables look nice in the plain text
view and and allows easy formatting after you typed the contents.
Also reformatting an existing table is no problem.
Select the source code, which belongs to the table and choose "Format table"
from the context menu:
The markdown language supports two types of tables:
Pipe Tables:
They are one line of text per row and the columns are stretched to
accomodate the text. Using automatic table formatting you can simply
type the table entries without having to care about the appearance:
After formatting the table, the source code looks like this
And here is the rendered version of the table:
Grid tables:
Grid tables allow more than one line of text which is word wrapped
to fit into the specified column width.
The column width are specified by the first separator line and again
it is not necessary to care about the layout while typing. Just indicate
column boundaries by a pipe '|', and a row boundaries by a line starting
with '+'.
After formatting:
And the rendered version:
...not rendered by github...