12Me21 / markup2

12y2/12y markup parsers
Other
6 stars 4 forks source link

support table headings #2

Open y-ack opened 2 years ago

y-ack commented 2 years ago

|# analogous with new heading syntax, do we keep |* too?

12Me21 commented 2 years ago

I was going to do |[#] (as an argument) but maybe |# is better... (should it be |[args]# or |#[args] though?) (also wonder if like, if we ever need row arguments, do we just put them in the first cell's args?) probably don't keep |* since * isn't bold/heading anymore, I guess actually I did use |[*] for header cell didn't I... why did I do that?

y-ack commented 2 years ago

hm, [#] takes up three characters; it's a little annoying when i'm aligning things monospaced and i'm already doing two bonus characters for |# so i think allowing nonarg syntax for it is better, i think it should go before args and is there any reason to disallow *? like the changes in other places are for a reason but the reason here is sorta... "it's not there anymore" in my mind there are still contexts and connections to 12y1, so...

12Me21 commented 2 years ago

well I switched to # because nothing else uses single * anymore (which was both bold and headings before)

seemed like a good idea to avoid putting * back on the list of "chars you might need to escape", maybe especially if there's an obvious alternative (with # being used for headings now)

y-ack commented 2 years ago

fair enough.. [*] header cell is definitely silly

still really likes the eol row args (probably as alternative/option) but there is the old capital f feature of single row tables needing to omit the last vertical bar ... maybe makes edge case of args on single cell at end of line on single row table ... dubious ?

12Me21 commented 2 years ago

if table rows have args, the pattern for "end of table" changes from |<eol> to |[args]<eol> so it would still work