Initially, I planned an alternative option for specifying tags. Here is this:
[[H]Header/[-H]]
or
[[H]Header/[-]]
or
[[H]Header/]
Accordingly, the tables were set by the tag
[[T]...]
The column delimiter was this -
[]
The line delimiter was
[[]]
-
[[]]
Example table:
[[T]
A [] B [] C
[[]]
1 [] 2 [] 3
[-T]]
or so:
[[T]
[[]] A [] B [] C
[[]] 1 [] 2 [] 3
[-T]]
(The
[-]
closing tag can be omitted.)
But then I remembered that several choices for the same formatting are something that I donβt like in Markdown (for example:
____
or
****
), and I decided to leave two formatting options in the PC markup (
~'...'
and
[[~]...]
) will be wrong. So, it makes sense to leave only one form of the record - with quotation marks
''
, since it is less conflicting and is the first / main idea that initiated this text markup {and the fact that typing quotation marks
'
and
'
unusual - I think not so scary, because
[ from my point of view ] it is more important to read the markup and its
cognitive characteristics (easy to understand / remember the rules of markup, easy to read / perceive the marked text), as well as reducing the likelihood of conflicts (when simple text or formula
[ wrong / ] unamer It is interpreted as markup) and avoiding the need to screen something (otherwise you can often skip / not notice such errors - when the marked text was converted a little to what was intended)}.
Having made my choice in favor of quotes, at first I wanted to make such a line delimiter -
''
(by analogy with
[]
), but quickly changed my mind (because then there is a problem with empty cells in the table itself) and came to the current form of writing:
'
''A' 'B' 'C''
''1' '2' '3''
'
or so:
''
'A' 'B' 'C'
''
'1' '2' '3'
''
(Of course, this form of recording is not the most pleasant for typing and I thought a lot about whether it is possible to simplify it somehow (or at least give the possibility of an alternative, simpler form for writing tables, like in GitHub Flavored Markdown or in Habrahabr Flavored Markdown [ By the way, most implementations of Markdown do not support tables without headers ] ), but decided to stop at the current form of the record, since it is so light enough (compared to HTML <table>) and at the same time has an undeniable advantage [ over a simpler form record] - the ability to include yache ku table anything (including any other elements of the mark, and even nested tables), as well as the current form of writing makes it possible to use the spaces at the beginning and end of a line of any table (possibility controversial, but it can be useful to export database tables) of the cell.)(If anyone is interested, here is the story / 'how I came to the' current record form for combining table cells)... no, I decided to hide it in a comment and not include it in the article, and if anyone is really interested, then see the source of the article.