Skip to content

bug: Mermaid diagrams not rendered #312

@luisdavim

Description

@luisdavim

Did you read the documentation and check existing issues?

Neovim version (nvim -v)

v0.11.2

Operating system/version

macOS 15.5

Browser/version

Chrome Version 138.0.7204.93 (Official Build) (arm64)

Describe the bug

Mermaid diagrams aren't rendered and instead I get an error message:

Image

Steps To Reproduce

  1. Clone the plugin git clone https://github.com/brianhuster/live-preview.nvim
  2. Open Nvim with minimal repro file nvim -u minimal_init.lua
  3. create a md file with the following contents
      graph TD;
          A-->B;
          A-->C;
          B-->D;
          C-->D;
    
    Loading
  4. Start the livepreview :LivePreview start

Expected Behavior

I'd expect the diagram to be rendered instead of an error being displayed in it's place.

Health

==============================================================================
livepreview:                                                              2 ⚠️

Check dependencies ~
- ✅ OK Nvim 0.11.2 is compatible with Live Preview
- ✅ OK `sh` is available
- ✅ OK `mini.pick` is installed
- ⚠️ WARNING `fzf-lua` (optional) is not installed
- ⚠️ WARNING `telescope` (optional) is not installed

Checkhealth server and process ~
- ✅ OK This Nvim process's PID is 40572
- ✅ OK Server is healthy on port 5500
- ✅ OK Server root: /Users/luisdavim/scrapyard/nebius

Check your live-preview.nvim config ~
- Your configuration table
- {
    browser = "default",
    dynamic_root = false,
    picker = "",
    port = 5500,
    sync_scroll = true
  }

Minimal config to reproduce

vim.cmd.set "rtp+=~/.local/share/nvim/site/pack/deps/opt/live-preview.nvim"

require("livepreview.config").set {
  --- Configuration here
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions