Skip to content

Table sometimes interrupts a pragraph and other times it does not #180

@mity

Description

@mity

Originally posted by @mity in #141 (comment)

foo
|  a  |  b  |
| --- | --- |
|  c  |  d  |

renders to (with -e table)

<p>foo</p>
<table>
<thead>
<tr>
<th>a</th>
<th>b</th>
</tr>
</thead>
<tbody>
<tr>
<td>c</td>
<td>d</td>
</tr>
</tbody>
</table>

However in this case, the table is recognized only if it does not interrupt a paragraph:

foo
 a  |  b
--- | ---
 c  |  d

renders to (with -e table):

<p>foo
a  |  b
--- | ---
c  |  d</p>

I would expect the paragraph interruption rule applies consistently no matter how exactly the table is encoded. I.e. either both the cases should be rendered as tables or none of them.

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