Revise with table column alignment based on work done for vimwiki-server

This commit is contained in:
Chip Senkbeil
2020-10-30 14:06:54 -05:00
committed by Tinmarino
parent 237f67db4e
commit e4fc0ca0e5
+7 -3
View File
@@ -479,7 +479,7 @@ mirrors [[https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table|HTML T
{{{vimwiki {{{vimwiki
| Year | Temperature (low) | Temperature (high) | Temperature (avg) | | Year | Temperature (low) | Temperature (high) | Temperature (avg) |
|------|-------------------|--------------------------|-------------------| |------|-------------------|:------------------------:|------------------:|
| 1990 | *50* degrees | 90 according to [[link]] | 72 | | 1990 | *50* degrees | 90 according to [[link]] | 72 |
| \/ | 45 degrees | > | 80 | | \/ | 45 degrees | > | 80 |
| \/ | \/ | > | 60 | | \/ | \/ | > | 60 |
@@ -498,11 +498,15 @@ A *row* is represented by one of the following:
A *divider row* is represented by the following: A *divider row* is represented by the following:
1. Starts at the beginning of a line 1. Starts at the beginning of a line
2. Zero or more [[#whitespace character|whitespace characters]] 2. Zero or more [[#whitespace character|whitespace characters]]
3. A sequence of pairs comprised of a [[#cell boundary|cell boundary]] and 3. A sequence of pairs comprised of a [[#cell boundary|cell boundary]] and [[#divider column|divider column]]
one or more hyphens (`U+002D` aka `-`)
4. A final [[#cell boundary|cell boundary]] 4. A final [[#cell boundary|cell boundary]]
5. A [[#line ending|line ending]] or end of input 5. A [[#line ending|line ending]] or end of input
A *divider column* is represented by the following:
1. An optional colon (`U+003A` aka `:`)
2. One or more hyphens (`U+002D` aka `-`)
3. An optional colon (`U+003A` aka `:`)
A *content row* is represented by the following: A *content row* is represented by the following:
1. Starts at the beginning of a line 1. Starts at the beginning of a line
2. Zero or more [[#whitespace character|whitespace characters]] 2. Zero or more [[#whitespace character|whitespace characters]]