quantizor/markdown-to-jsx

Error using divider with `---`

oliveirarafa opened this issue · 1 comments

I'm using frontmatter in my Markdown and using dividers (---) within my text. However, the library is removing all the text between the --- tags.

I noticed there's a pull request (#538) that automatically removes YAML frontmatter. I suspect this PR is causing the issue by removing all text between --- tags, and since my text contains two such dividers, it gets removed.

Using another type of divider tag (like *** or ___) works correctly.

I may be able to fix this by modifying the regex to be lazy while looking for ---. I'll try to take a look this week.