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

fix: don't render content as title in callouts with empty titled paragraph #150

Closed r4ai closed 1 month ago

r4ai commented 1 month ago

fix #116

Fixed an issue where the body was displayed as the title in callouts with a title consisting only of line breaks.

Example:

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

yields:

<div data-callout data-callout-type="important">
  <div data-callout-title>Important<br>
  </div>
  <div data-callout-body>
    <p>Crucial information necessary for users to succeed.</p>
  </div>
</div>
changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: 2effedc26e6836930e7608f484b7b8d9693e0fe9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------------- | ----- | | @r4ai/remark-callout | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR