Skip to content

Table parsing pull previous content into the header #929

@mikethea1

Description

@mikethea1

Input:

echo (new Parsedown)->text(<<<MD
A

| B | C |
|-------------|---------|
| B1 | C1 |
MD);

Output:

<table>
<thead>
<tr>
<th>A</th>
<th>B</th>
<th>C</th>
</tr>
</thead>
<tbody>
<tr>
<td>B1</td>
<td>C1</td>
</tr>
</tbody>
</table>

Note that A has become a table header instead of being a separate paragraph.

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