javalent / fantasy-statblocks

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

🐞 Allow markdown formatting in the "name" field of trait blocks #428

Closed miscoined closed 6 days ago

miscoined commented 1 week ago

Check for existing bug reports before submitting.

Expected Behavior

A trait block like the following:

attacks:
  - name: My __Big__ Attack
     desc: A big __attack__

Should render with Big in a <strong> tag, or otherwise bolded according to normal markdown. This is what happens to the attack in the desc field, but not to the name.

Current behaviour

Markdown in name fields is ignored and printed literally. e.g. literally "My __Big__ Attack"

Reproduction

Open a new vault with a basic statblock, and add a bolded world in a trait field.

Which Operating Systems are you using?

Obsidian Version Check

1.6.3 1.5.8

Plugin Version

4.4.2

Confirmation

Possible solution

I'll look at the code and maybe send a PR out for this.