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.

Can't get the :MarkdownPreview command anymore

See original GitHub issue

Describe the bug I’m using :MarkdownPreview since a few years in neovim, mostly without any issues. But today, I cannot use it, the :MarkdownPreview command doesn’t show up anymore. I don’t use the markdown preview every day, so I don’t know since when it doesn’t work as expected.

I’m running archlinux (regularly updated). I’m using neovim v0.4.4, Markdown preview is up to date. Node v.12.8.3. Checkhealth is fine.

I tried to reinstall my plugins and to use a minimal init.vim for testing purpose:

" plugins (vim-plug)
call plug#begin('~/.config/nvim/plugged')
Plug 'arcticicestudio/nord-vim'                     " Nord color scheme
Plug 'sheerun/vim-polyglot'
Plug 'tpope/vim-sensible'                           " default settings
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install'  }     " Markdown preview
Plug 'vim-pandoc/vim-pandoc'                        " pandoc support 
Plug 'vim-pandoc/vim-pandoc-syntax'                 " markdown syntax support 
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
call plug#end()

" Filetype detection
filetype plugin on

" Format indentation
if has("autocmd")
  filetype plugin indent on
endif

" Python provider in a pyenv
let g:python3_host_prog='/home/igor/.pyenv/versions/neovim3/bin/python'

" Pandoc
let g:pandoc#formatting#mode = "hA"

" airline
let g:airline_powerline_fonts = 1
let g:airline#extensions#wordcount#filetypes = 'pandoc\|text\|' "Add support when pandoc is activated
let g:airline_theme='nord'

" Syntax coloration and color theme
syntax enable
set background=dark
colorscheme nord

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
iamccocommented, Nov 16, 2020

@iGormilhit Update and set let g:mkdp_filetypes = ['markdown'] filetypes you want.

0reactions
iGormilhitcommented, Nov 13, 2020

There is many things to be read on the vim-pandoc repo. So I tried to move the let g:pandoc#filetypes#pandoc_markdown = 0 before loading the vim-pandoc pluging and I can get the filetype I want. But, then, I don’t get any markdown formatting.

Would it be possible, and a good idea, that markdown-preview could have a setting to recognize the pandoc or markdown.pandoc filetype ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[v1.31] Markdown preview not working on Arch Linux #68354
Simply open a markdown file and try opening the preview, either via keyboard shortcuts or the preview button on the upper right.
Read more >
VSCode: "Markdown Preview" SHIFT-COMMAND-P not working
make sure that your cursor is ACTIVE in your .MD markdown document, and NOT active on the filename in the Explorer Tree in...
Read more >
Markdown preview on VSCODE - Reddit
To begin with, how do I preview a markdown file in real-time as I edit it? Apparently, (CTRL + K, V) is not...
Read more >
How to use Markdown in Notepad++ - Super User
MarkdownViewer++ is a Notepad++ plugin that lets you type a file using Markdown and see the preview in real time, in a preview...
Read more >
Cannot open Markdown files in IntelliJ 2020.1 : IDEA-237720
Specifically, it seems to be caused by importing the IDE configuration of a previous release that had a markdown file open. This results...
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