javalent / fantasy-statblocks

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

Fantasy AGE Stunt Die #346

Closed joshua211 closed 2 months ago

joshua211 commented 5 months ago

Check for existing bug reports before submitting.

Expected Behavior

A fantasy age stunt die string (dice: 1dS) should be possible to render inside a statblock

Current behaviour

This kind of dice does not seem to be supported. Instead of displaying the dice result, a plain string is rendered. Using a dice callback makes no difference to this: image

using other variations, without the dice, also do not work.

image

Reproduction

Use the stunt die string (1dS) inside a statblock

Which Operating Systems are you using?

Obsidian Version Check

1.5.3

Plugin Version

3.18.1

Confirmation

Possible solution

A simple fix would be to allow parsing dice strings directly from the statblock

No response

valentine195 commented 2 months ago

You are returning the dice string incorrectly. Please follow the example that is shown in the help text above the text area.