Skip to content

PRs/Issues with Mermaid markdown causes Jasper to use the wrong webpage URL #283

@dinofx

Description

@dinofx

Last year GitHub added mermaid markdown support in issues, PRs, etc. Github's implementation uses an iframe to load the 3rd-party rendering code that displays the diagram.

This seems to confuse Jasper. When display a PR with URL like:

https://{enterprise hostname}/{org}/{repo}/pull/55

Jasper will instead display an address like:

https://{enterprise hostname}/viewscreen/markdown/mermaid?color_mode=light#{fragment}

Viewing this Issue in Jasper should reproduce the problem (I assume it's not specific to GH:Enterprise):

  graph TD;
      A[Example diagram]-->B[to reproduce problem];
Loading

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