forked from jgm/lunamark
-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Labels
bugcommonmarkRelated to making the syntax of markdown follow the CommonMark specRelated to making the syntax of markdown follow the CommonMark spec
Milestone
Description
When a table is at the top of the document, it is parsed correctly:
$ texlua markdown-cli.lua pipeTables=true <<< '
| aaa | bbb | ccc |
|-----|-----|-----|
| aaa | bbb | ccc |
| aaa | bbb | ccc |
'
\markdownRendererDocumentBegin
\markdownRendererTable{}{3}{3}{ddd}{{aaa}{bbb}{ccc}}{{aaa}{bbb}{ccc}}{{aaa}{bbb}{ccc}}
\markdownRendererDocumentEnd
However, when a table is nested in a list, empty lines are added to the table:
$ texlua markdown-cli.lua pipeTables=true <<< '
- aaa:
| aaa | bbb | ccc |
|-----|-----|-----|
| aaa | bbb | ccc |
| aaa | bbb | ccc |
'
\markdownRendererDocumentBegin
\markdownRendererUlBegin
\markdownRendererUlItem aaa:
\markdownRendererInterblockSeparator
\markdownRendererTable{}{5}{3}{ddd}{{aaa}{bbb}{ccc}}{{}{}{}}{{aaa}{bbb}{ccc}}{{}{}{}}{{aaa}{bbb}{ccc}}
\markdownRendererUlItemEnd
\markdownRendererUlEnd
\markdownRendererDocumentEnd
Metadata
Metadata
Assignees
Labels
bugcommonmarkRelated to making the syntax of markdown follow the CommonMark specRelated to making the syntax of markdown follow the CommonMark spec