r4ai / remark-callout

A remark plugin to add obsidian style callouts to markdown
https://r4ai.github.io/remark-callout/
MIT License
4 stars 1 forks source link

Empty titled paragraph renders content in title #116

Closed eikowagenknecht closed 1 month ago

eikowagenknecht commented 1 month ago

Input (notice the two spaces after the closing bracket):

> [!IMPORTANT]  
> Crucial information necessary for users to succeed.

Output:

<blockquote data-callout="IMPORTANT" class="not-prose callout">
<div data-callout-title="" class="callout-title"><br>
Crucial information necessary for users to succeed.</div>
<div data-callout-title="" class="callout-content">
<p></p>
</div>
</blockquote>

"Crucial information necessary for users to succeed." should be in the content, not the title.

Also, there's an empty paragraph in the content now.

r4ai commented 1 month ago

Hi @eikowagenknecht! Thanks for reposting the bug.

I'd like to investigate why this kind of bug occurs.