Skip to content

Implementation of the table element #6

@mortenpi

Description

@mortenpi

The precise implementation of the Table element in CommonMark is currently unclear to me (not sure how the different sub-elements should be organized).

  • The Table extension needs to be properly hashed out and documented.
  • The conversion from standard library tables also needs to be fixed.
  • Remove the TableBody and TableHeader elements altogether, and just interpret the first row as the header.
  • Make TableCell a singleton, removing its fields. They could also be turned into some sort of dynamic properties that are determined by traversing the tree.
  • Make TableComponent subtype AbstractElement directly and don't use it for Table (to ensure that the internal nodes of a table are not allowed to exists in other contexts).
  • Add helper methods like rows, nrows, ncols etc. to dynamically determine the number of columns and rows of a table.

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