question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nothing happens on MarkdownPreview

See original GitHub issue

Thanks for this plugin!

When I run MarkdownPreview on a .md in neovim v0.3.4 nothing happens for me after I install this plugin and I’m not sure how to debug it.

I have installed the package with dein and use the default config from the Readme.

Running checkhealth produces,

health#mkdp#check
========================================================================
  - INFO: Platform: linux
  - INFO: Nvim Version: NVIM v0.3.4
  - INFO: Node version: v10.15.2

  - INFO: Script: /home/rth/.cache/dein/repos/github.com/iamcco/markdown-preview.nvim/app/server.js
  - INFO: Script exists: 1
  - OK: Using node

and I also have tried adding the following to .config/nvim/init.vim

let $NVIM_MKDP_LOG_FILE = expand('~/mkdp-log.log')
let $NVIM_MKDP_LOG_LEVEL = 'debug'

but this file is not created. Same thing happens (i.e. nothing) when I set,

let g:mkdp_auto_start = 1

and try to edit/save markdown file.

Is there any other things I should try to debug it (or log files that I can look at)? Thank you!

Edit: another possibly relevant information is that

  • I am using neovim on a remote Ubuntu 19.04 server.
  • I can see that MarkdownPreview command is only available for markdown files, running it on any other file produces “E492: Not an editor command: MarkdownPreview”, so at least the file type detection is working.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:40 (9 by maintainers)

github_iconTop GitHub Comments

14reactions
iamccocommented, May 15, 2020

@Unknown-Chinese-User do :call mkdp#util#install() again.

10reactions
rdokcommented, May 14, 2020

Running :messages listed a JS error cannot-find-module-tslib, leading me to believe an unstable build.

After I removed, reinstalled this plugin, and tested it with and without yarn, the issues was fixed for both cases.

Testing machine: Ubuntu 18.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Markdown preview button does nothing · Issue #31038 - GitHub
Open a markdown file. Click the open preview button. Expected result: A preview is shown to the side. Actual result: Nothing happens.
Read more >
Mardown plugin doesn't show preview
Hey there,. as described above my WebStorm IDE doesn't show up the preview tab for markdown files anymore. This happens with any .md...
Read more >
VSCode markdown preview blank on launch from command ...
from the command line into VSCode, the files fail to render using markdown preview button. The previw window opens and is blank. When...
Read more >
Troubleshooting - Dendron
Preview not Rendering Correctly. causes: Using the built-in preview instead of the Dendron preview; fixes: Use Dendron Markdown Preview ...
Read more >
Troubleshooting - GitBook Documentation
I have a GitHub sync error · ​GitBook is not using my docs folder · GitBook is creating new markdown files · ​My...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found