jackyzha0 / quartz

🌱 a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
https://quartz.jzhao.xyz
MIT License
7.35k stars 2.54k forks source link

callouts that are marked as collapsible but without content to collapse still act as though they can be collapsed #1538

Open tinygwen opened 1 month ago

tinygwen commented 1 month ago

Describe the bug callouts that are marked as collapsible but without content in the body to collapse still act as though they can be dropped down

To Reproduce create a callout and mark it with a -, like >[!bug]-, as though you want it to have a collapsible body give the callout a title, but no body

I've created an example markdown document for this issue which demonstrates the bug.

here is the raw content of both title and body of both parent and nested callouts which can be pasted into an .md as demonstration:

> [!bug]- I have no body but i act like i can be collapsed

Expected behavior that the callout does not have an error or animation acting as if it can be collapsed, as it is handled in obsidian

Screenshots and Source Expected behavior, as handled in obsidian:

You can help speed up fixing the problem by either

  1. providing a simple reproduction
  2. linking to your Quartz repository where the problem can be observed I've created an example markdown document for this issue which demonstrates the bug.

Desktop (please complete the following information):

Additional context none