distal-attribute
distal-attribute
distal-attribute
distal-attribute

Make markdown table syntax more compatible

chris4beta posted 4 weeks ago in General

Most markdown parsers require at least one dash in the header separator, so

| id | name | email | bal | 
| -: | - | - | -: | 
| 5 | chris | foo | 12089 |

would be valid. I found that Gitlab's parser does not like this, and requires 3.

Making the separator 3 dashes long does not affect rendering anywhere else that I've seen, as the "at least one dash" requirement is met.

| id | name | email | bal | 
| ---: | --- | --- | ---: | 
| 5 | chris | foo | 12089 |

Your parser renders it correctly too:

id name email bal
5 chris foo 12089

Can the markdown output be updated to use 3 dashes instead of 1?

chris4beta posted 4 weeks ago

Sorry, this should be in Feature Discussion but I can't seem to edit after the fact.

ansgar posted 4 weeks ago

Yes, I can do that. It's always the question if that's not breaking other things, which you already checked.

ansgar posted 3 weeks ago

Done in r5143

Please login to leave a reply, or register at first.