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

Recognition of Table could be more liberal. #235

Open
poetnerd opened this issue Apr 21, 2024 · 2 comments
Open

Recognition of Table could be more liberal. #235

poetnerd opened this issue Apr 21, 2024 · 2 comments
Labels

Comments

@poetnerd
Copy link

I was having trouble rendering a table. A table like this:

| key | value

| first | 0

Was rendered raw until I specified it as this:

key value
first 0

Many markdown rendering engines are more liberal in what they accept as a valid table. For example the renderer used by the fossil source code manager https://fossil-scm.org/home/doc/trunk/www/index.wiki (which is the system developed by and used by the SQLite DB community.)

This markdown-viewer would be easier to use, less confusing to those who are getting away with less conservatively formatted tables in markdown if the following two enhancements were made:

  1. Do not require a closing vertical bar.
  2. Do not require the horizontal line at the top to contain vertical bars.

I've just requested this enhancement to another markdown viewer I tried that has the same problem.

@poetnerd
Copy link
Author

Let me try again to provide the currently invalid table (this time as code in Markdown.):

| key | value
--------------------
| first | 0

@simov simov added the compiler label Apr 21, 2024
@simov
Copy link
Owner

simov commented Apr 21, 2024

Thanks for the feedback. The underlying compilers that this extension is using are trying to be compliant with the CommonMark spec. Most likely that syntax is not part of it, but maybe there will be a plugin to support that variation for the table definition syntax.

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

No branches or pull requests

2 participants