antfu / markdown-it-mdc

MDC (Markdown Components) syntax for markdown-it.
MIT License
101 stars 3 forks source link

Paragraph stripping in block components misses spacing #3

Closed nobkd closed 7 months ago

nobkd commented 11 months ago

When there are two paragraphs in the slot of a block component, the <p> are stripped. The problem is, that there is no space that gets inserted between the stripped paragraphs.

Example:

::componentname
paragraph one.

paragraph two.
::

Result:

<componentname>paragraph one.paragraph two.</componentname>

Expectation (see space):

<componentname>paragraph one. paragraph two.</componentname>