Skip to content

[Suggestion]: Table syntax proposal #55

@boltlessengineer

Description

@boltlessengineer

Define table as new kind of structural detached modifiers using = as prefix.

I'm using = because I found it feels visually most appealing. It should be : following v1 spec. I'm aware of conflict with =macro...=end which is a syntax I actually want to replace with @code...@end but that's whole new topic.

Basically stealing the "multi-children list item" design from @vhyrro and @mrossinek.

=
== Character
== Name
== Categories
=
== `*`
== Headings
==
   - Structural
   - Nestable
=
== `-`
== Unordered List
==
   - Nestable
=

Which will be:

Character Name Categories
* Headings - Structural - Nestable
- Unordered List - Nestable

With syntax suggested in #50, now heading will look like:

* heading A

  paragraph under heading A

** heading B

   paragraph under heading B
*

paragraph outside heading A content

So it is reasonable to adopt exactly same syntax to tables:

= <- Row 1
== <- Cell A1
   paragraph under Cell A1

   paragraph under Cell A1
==
   paragraph under Cell B1
= <- Closing Row 1

paragraph outside of table

It's still a pretty rough idea. But seems we can easily merge these two.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions