markdown-preview.nvim icon indicating copy to clipboard operation
markdown-preview.nvim copied to clipboard

PlantUML doesn't show

Open GreenSleeper opened this issue 2 years ago • 2 comments

I install this plugin using packer like this:

        "iamcco/markdown-preview.nvim",
        run = function() vim.fn["mkdp#util#install"]() end,
        setup = function()
            vim.g.mkdp_filetypes = { "markdown" }
            vim.g.mkdp_open_to_the_world = 1
            vim.g.mkdp_echo_preview_url = 1
            vim.g.mkdp_open_ip = '10.160.209.78'
            vim.g.mkdp_port = '65532'
            vim.g.mkdp_refresh_slow = 1
            vim.g.mkdp_theme = "light"
            vim.cmd(
                [[
        function! LemonadePreview (url)
          execute "silent ! lemonade open " . a:url
        endfunction
        ]]
            )
            -- vim.g.mkdp_auto_start = 1
            vim.g.mkdp_browserfunc = 'LemonadePreview'
            vim.g.mkdp_auto_close = 0
        end,

and use the example in README to test :

    ``` plantuml
    Bob -> Alice : hello
    ```

when I run :MarkdownPreview, the webpage show up, but the diagram doesn't show up.

by the way, mermaid works fine.

What's wrong?

GreenSleeper avatar Jan 29 '23 08:01 GreenSleeper

Same here, no luck yet. I'm using Plug, and attempting to access a local uml server running in docker.

hattwj avatar Mar 12 '23 20:03 hattwj

same here, I resolved.

this is worked.

@startuml

Bob -> Alice : hello

@enduml

@hattwj @GreenSleeper

miyataka avatar Apr 29 '24 05:04 miyataka