Skip to content

Revisit strict CommonMark in PHEPs #38

@jtniehof

Description

@jtniehof

#31 brought up the question of tables in PHEPs. I'm going to try to summarize the situation here.

Markdown tables are a GitHub extension to CommonMark. By the first telecon on PHEPs we had pretty quickly settled on using MarkDown instead of rst, and decided in favor of CommonMark without extensions. Some discussion is in the PHEP1 thread: 1, 2, but eschewing extensions was not extensively discussed. I took that as "accepted right off" but might have been "lost in the noise".

A few options for handling tables:

  1. Do not use tables and present in some other form
  2. Use an HTML table instead (I haven't checked that this renders properly in, say, pandoc!)
  3. Update / replace PHEP1 and switch to GitHub markdown (and update the Content-Type header)
  4. Don't update PHEP1 and just proceed with using GitHub markdown anyhow.
  5. Allow only tables but not other extensions?!?
  6. Reconsider MarkDown and particularly CommonMark.

Regarding breadth of support:

  • reText doesn't support tables.
  • pandoc with -f commonmark doesn't. With -f markdown or -f gfm it does. (Although with gfm the table cells don't wrap, and it runs off the page).
  • vscodium previews tables fine.
  • Google Docs imports tables okay, too.

(This is essentially a subtopic of #27 but seems relatively urgent to resolve soon, and also a fairly meaty topic by itself.)

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