fantasy-statblocks icon indicating copy to clipboard operation
fantasy-statblocks copied to clipboard

🐞 Odd rendering bug when links contain a plus sign that dice roller wants to integrate

Open scooper4711 opened this issue 6 months ago • 0 comments

Check for existing bug reports before submitting.

  • [X] I searched for existing Bug Reports and found no similar reports.

Expected Behavior

Expected to display the desc, including the +1

Current behaviour

I have an odd issue when converting from pathbuilder to fantasy statblocks. Pathbuilder exports armor runes as "Armor Potency +1". The item, as exported from Foundry, is named "Armor Potency (+1)" That's all well and good. The link I make of [[Armor Potency +1]] will be broken until manually fixed.

However, the render looks very odd. It renders as "[render|noform|avg|noparen`)](app://obsidian.md/Armor%20Potency%20+1%20(%60dice:%201d20+1)"

I have tracked it down to the plus sign when "integrate with dice roller" is enabled. Exclude the plus sign, add parenthesis, or disable dice roller integration and it works.

Reproduction

With this stat block

layout: Basic Pathfinder 2e Layout
name: "Armor Bug"
level: "Fighter 7"
abilities_top:
  - name: Items
    desc: " 1x [[Armor Potency +1]]"

The render looks like this: image

Which Operating Systems are you using?

  • [ ] Android
  • [ ] iPhone/iPad
  • [ ] Linux
  • [X] macOS
  • [ ] Windows

Obsidian Version Check

1.6.7 and 1.6.5

Plugin Version

4.6.0

Confirmation

  • [X] I have disabled all other plugins and the issue still persists.

Possible solution

fix the link to have parenthesis.

layout: Basic Pathfinder 2e Layout
name: "Armor Bug"
level: "Fighter 7"
abilities_top:
  - name: Items
    desc: " 1x [[Armor Potency (+1)]]"

scooper4711 avatar Aug 09 '24 22:08 scooper4711