Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Duplicate dice callbacks for traits #471

Open
3 of 7 tasks
Ascariel1984 opened this issue Oct 29, 2024 · 0 comments
Open
3 of 7 tasks

🐞 Duplicate dice callbacks for traits #471

Ascariel1984 opened this issue Oct 29, 2024 · 0 comments

Comments

@Ascariel1984
Copy link

Ascariel1984 commented Oct 29, 2024

Check for existing bug reports before submitting.

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

Expected Behavior

When using the sample dice callback function return ["The monster guesses you have: ", { text: "1d20 + 2" }, " freckles."]; on a TRAIT BLOCK it should output the trait name and then the trait description with the dice callback function.

Current behaviour

When using the sample dice callback function return ["The monster guesses you have: ", { text: "1d20 + 2" }, " freckles."]; on a TRAIT BLOCK it outputs the result twice. Once for the Trait name and once for the trait description.
image

If the same sample dice callback function is used on a PROPERTY BLOCK it renders correctly.

Reproduction

  1. Create a samle TRAITS BLOCK
  2. Add the sample dice callback function return ["The monster guesses you have: ", { text: "1d20 + 2" }, " freckles."]; to that TRAIT BLOCK
  3. Add at least one entry for above Block in Obsidian
  4. Check the results

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.7.4 and 1.5.3

Plugin Version

4.7.8

Confirmation

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

Possible solution

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant