Code Monkey home page Code Monkey logo

Comments (9)

valentine195 avatar valentine195 commented on September 24, 2024

You have to escape the | character. It is being parsed as a table cell.

from dice-roller.

wychwitch avatar wychwitch commented on September 24, 2024

You have to escape the | character. It is being parsed as a table cell.

OH DUH that explains it!!

However when trying that out (escaping with ), it seems to completely ignore the link option, and instead uses the default behavior of grabbing a random block from the tag.

This is my table

| dice: 1d4 | Connections                                         |
| --------- | --------------------------------------------------- |
| 1         | They are associated with `dice: #dnd/factions\|link` |
| 2         | They're from `dice: #dnd/pc\|link`'s past            |
| 3         | They know `dice: #dnd/pc\|link`                      |
| 4         | They know `dice: #dnd/npc\|link`                     |
^connections

I also tried putting a space between the tag and the \|link to no avail.

Am I supposed to use a different escape character? I'm probably making another formatting mistake 😅

Edit: forgot to take a screenshot
image

from dice-roller.

valentine195 avatar valentine195 commented on September 24, 2024

Ah, I had the "Return Links" setting on! Whoops :)

from dice-roller.

valentine195 avatar valentine195 commented on September 24, 2024

can you please try 7.4.1

from dice-roller.

wychwitch avatar wychwitch commented on September 24, 2024

can you please try 7.4.1

I just tried and!! it works in the table itself but when trying to roll from it it displays a malformed result

The code :

| dice: 1d4 | Connections                                         |
| --------- | --------------------------------------------------- |
| 1         | They are associated with `dice: #dnd/factions\|link` |
| 2         | They're from `dice: #dnd/pc\|link`'s past            |
| 3         | They know `dice: #dnd/pc\|link`                      |
| 4         | They know `dice: #dnd/npc\|link`                     |
^connections

`dice: [[NPC Dice Tables#^connections]]`

Screenshot:
image

from dice-roller.

valentine195 avatar valentine195 commented on September 24, 2024

Okay, I figured out why this is breaking. However, in figuring that out, I also realized that what you're trying to do here won't actually work - the LinkRoller returns the file object, not the link path, so it won't render correctly in the table roller's result.

I will have to work on this a bit, it's a little tricky to get right.

from dice-roller.

wychwitch avatar wychwitch commented on September 24, 2024

Ahhh I see!! Thank you for looking into this;;

from dice-roller.

valentine195 avatar valentine195 commented on September 24, 2024

Please try 7.5.0 - this should work now.

from dice-roller.

wychwitch avatar wychwitch commented on September 24, 2024

Please try 7.5.0 - this should work now.

It does!!! Thank you so much!! This is so exciting aaaaaa

from dice-roller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.