Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

mdr preview only a part of markdown file #18

Open
logbasex opened this issue Mar 29, 2021 · 6 comments
Open

mdr preview only a part of markdown file #18

logbasex opened this issue Mar 29, 2021 · 6 comments

Comments

@logbasex
Copy link

Screenshot from 2021-03-30 00-23-27

This issue is described in the image above. I also already trying with glow but still getting an error: no such tmp file exception. Here is my nvim config:

Plug 'skanehira/preview-markdown.vim'
let g:preview_markdown_vertical=1
let g:preview_markdown_parser='glow'
@georgemaxx
Copy link

maybe 'glow' tool is not added into the environment path

@skanehira
Copy link
Owner

What the result about this?

:echo executable("glow")

If you have already installed glow it will return 1

@alexzanderr
Copy link

i have the same problem, preview is incomplete!
i installed glow, but it works like a charm in my terminal.
anyway, the problem is with the plugin.

@asmka
Copy link

asmka commented Sep 18, 2021

I also encountered this problem and researched it.
So, I came to the conclusion that the glow binary installed by snap has a bug.
I installed glow with building the source instead and resolved it.

Researching glow

$ ls /tmp/nvim3M4DQm/
0  2.md

Use glow command installed by snap

$ glow /tmp/nvim3M4DQm/
Error: open /tmp/nvim3M4DQm/: no such file or directory
︙

Use glow command installed with building source

$ glow /tmp/nvim3M4DQm/

    Glow

   1 local │ 0 stashed │ 2 news

 │ 2.md
 │ 2 hours ago

Environment

OS: Ubuntu 20.04 LTS on WSL
nvim: v0.5.0
glow: v1.4.1
nvim config:

let g:preview_markdown_parser='glow'

@alexzanderr
Copy link

alexzanderr commented Sep 19, 2021

I installed glow with building the source instead and resolved it.

in the beginning, i installed glow from AUR (building from source from arch user repo) and had (and still have) the same problem.

i tried, other plugins from neovim that render markdown inside neovim and they worked.
like i said, there is a problem with this plugin. it stops rendering from 10 lines to the EOL.

@Monirzadeh
Copy link

@alexzanderr which one do use now?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants