Skip to content

Markdown tables do not consider minimal table heading/body separators #236

Open
@chrispy-snps

Description

@chrispy-snps

If I publish the following Markdown source file to HTML5:

# Table Test

| Foo | Bar |
| - | - |
| 1 | 1 |

| Foo | Bar |
| -- | -- |
| 2 | 2 |

| Foo | Bar |
| --- | --- |
| 3 | 3 |

Only the third table is recognized as a Markdown table; the first and second are published as paragraph elements:

<p class="p">| Foo | Bar |
| - | - |
| 1 | 1 |</p>

<p class="p">| Foo | Bar |
| -- | -- |
| 2 | 2 |</p>

Only tables with at least three hyphen characters in the heading/body separator (| --- |) are considered. However, the MultiMarkdown table syntax topic does not mention this requirement:

https://fletcher.github.io/MultiMarkdown-5/tables.html

and other Markdown processors I tried recognize all three tables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions