javalent / dice-roller

Inline dice rolling for Obsidian.md
272 stars 28 forks source link

[Basic Usage]: Table Roller doesn't work/is confusing to use #225

Closed Nivyan closed 1 year ago

Nivyan commented 1 year ago

Check for existing bug reports before submitting.

Expected Behavior

I've copy-pasted multiple examples from the documentation directly into my markdown, yet it doesn't render.

The documentation or documentation for lists, both says to simply make a table/list and reference it in a codeblock. Like so:

| Header |
| A          |
| B          |

Or

-   a
-   b
-   c
-   d

And then reference it in another note like so:

dice: [[Note^block-id]]

Current behaviour

A simple roll like so:
dice: 1d4 ...works as intended.

But any kind of reference simply loads the entire file, and the dice graphic does nothing when clicked.

Image

I've now tried simply copy pasting the exact examples in the documentation, but it doesn't render anything from the note at all.

Reproduction

Copy and paste the documentation examples, and notice that they fail or doesn't work as intended.

Which Operating Systems are you using?

Obsidian Version Check

1.3.5

Plugin Version

8.17.0

Confirmation

Possible solution

No response

sigrunixia commented 1 year ago

Can I have some clarification on if you are copying and pasting, or manually typing in the examples?

Nivyan commented 1 year ago

Can I have some clarification on if you are copying and pasting, or manually typing in the examples?

Yes.

I tried manually first, because it seemed incredibly simple. Then I tried manually following the documentation, then I copy-pasted when I got too frustrated.

Nivyan commented 1 year ago

I figured out the issue!

The documentation said that block references were optional. So to test and avoid as many variables, I tested with a single list or table in a note, and tried getting it without quoting.