javalent / fantasy-statblocks

Create Dungeons and Dragons style statblocks for Obsidian.md
MIT License
339 stars 68 forks source link

🐞 Markdown text of non-conditional elements transforms into a list #409

Closed silentjames closed 2 months ago

silentjames commented 2 months ago

Check for existing bug reports before submitting.

Expected Behavior

These elements display a usual - as before.

Current behaviour

In my statblocks I use some properties where "Conditional" parameter is off, and "Fallback" is - by default. In result, it creates a huge el-ul > ul > li construction inside statblock-markdown class. Also, almost all themes, including the default one, add dot marker before the (even empty!) list element.

<div class="statblock-markdown svelte-1c3hzq4 el-ul" data-tag-name="ul">
   <ul>
      <li>
         ::marker
      </li>
   </ul>
</div>
image

Reproduction

  1. Create new statblock;
  2. Add new property into it;
  3. Save changes;
  4. Create a note for your new statblock and go to Reading view.

Which Operating Systems are you using?

Obsidian Version Check

1.5.3 and 1.5.12

Plugin Version

4.3.3

Confirmation

Possible solution

I hope it's possible to switch it back to the statblock-markdown > p, for example.

valentine195 commented 2 months ago

This is a side effect of doing markdown rendering by default. Guess I need to escape this case. Thanks.