Skip to content

Render issue with text between two tables #18

@AWolf81

Description

@AWolf81

I'm working on a feature where it looks like markdown-it-multimd-table is not correctly rendering the markdown.
You can find the mentioned PR here.

The problem is that the following input

Colons can be used to align columns.

| Tables | Are | Cool |
| --- | :-: | --: |
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |

There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.

| Markdown | Less | Pretty |
| --- | --- | --- |
| _Still_ | `renders` | **nicely** |
| 1 | 2 | 3 |

is rendered like in the below screenshot (from Boostnote app) with the "p-tag" in the table but it should render two tables with a p-tag between them.
grafik

I created a minimal example of the issue in the following Codesandbox.

Expected result

Created by adding a <br/> after first table but it should render like this with-out the additional newline.
grafik

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