Skip to content

[Feature] Support preview based on configured file type rather than file extension #116

Open
@moni-dips

Description

I create a new text file in Code, select type as Mermaid and open the mermaid preview.
Then I click inside the text file and paste some mermaid code.
As troubleshooting steps, I tried moving code to each of my three monitors, but nothing changed.

Expected behaviour

Preview works

sequenceDiagram
    Alice->>+John: Hello John, how are you?
    Alice->>+John: John, can you hear me?
    John-->>-Alice: Hi Alice, I can hear you!
    John-->>-Alice: I feel great!```

### Actual behaviour
Preview does not work

Include:
   * Screenshot ![image](https://github.com/vstirbu/vscode-mermaid-preview/assets/126574585/59ac9322-166b-4aad-a5d6-94bd91ae9f68)
   * Preview mode: Mermaid
   * Theme used: dark
Loading

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