Skip to content

🐞 Using a Pipe (|) inside a Wiki Link to set the display text for a section/table roller breaks parsing #369

Open
@dljsjr

Description

@dljsjr

Check for existing bug reports before submitting.

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

Expected Behavior

When referencing a wikilink w/ custom display text set on it, e.g.:

`dice: [[path/to/note.md#roller-section|Section Roller]]`

- or -

`dice: [[path/to/note.md#^roller-table-block|Table Roller]]`

The reading view should render the display text for the link, and the dice roller should still work.

Current behaviour

This form fails to parse as a dice roller entirely, just rendering as <code>…</code> in reading view.

Because this is a valid form for a Wikilink, I think that it's a bug for it not to be parsed properly.

Screenshots

Regular Wikilink, With Display Text (.md + rendered)

markdown

Image

rendered

Image

Dice Formula Wikilink, Without Display Text (.md + rendered)

markdown

Image

rendered

Image

Dice Formula Wikilink, With Display Text (.md + rendered)

markdown

Image

rendered

Image

Reproduction

Create a dice: formula that references a Wikilink and use the | character inside the link to set the display text manually, then go to Reading View.

Which Operating Systems are you using?

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

Obsidian Version Check

Obsidian 1.8.4, Installer 1.8.3

Plugin Version

11.4.1

Confirmation

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

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions