hashicorp / next-mdx-remote

Load MDX content from anywhere
Mozilla Public License 2.0
2.67k stars 140 forks source link

How to stop mdx-remote parsing empty line as a line break? #298

Closed OatLatte closed 2 years ago

OatLatte commented 2 years ago

Hello folks,

I have like :


#heading 1

#heading 2 

The empty line between them will be parsed as a line break.
Is there a way to just ignore empty lines?

Thanks!
BRKalow commented 2 years ago

This could be possible with a remark plugin, check out https://mdxjs.com/docs/extending-mdx/