weirongxu / coc-markdown-preview-enhanced

Markdown Preview Enhanced for coc.nvim
Other
90 stars 1 forks source link
markdown markdown-preview markdown-preview-enhanced neovim vim

coc-markdown-preview-enhanced

Markdown Preview Enhanced ported to coc.nvim

Introduction

Markdown Preview Enhanced is an extension that provides you with many useful functionalities such as automatic scroll sync, math typesetting, mermaid, PlantUML, pandoc, PDF export, code chunk, presentation writer, etc. A lot of its ideas are inspired by Markdown Preview Plus and RStudio Markdown.

Required

Install

:CocInstall coc-markdown-preview-enhanced

Commands

:CocCommand markdown-preview-enhanced.openPreview

Command Functionality
markdown-preview-enhanced.openPreview Open preview
markdown-preview-enhanced.syncPreview Sync preview / Sync source
markdown-preview-enhanced.runCodeChunk Run code chunk
markdown-preview-enhanced.runAllCodeChunks Run all code chunks

Enable the Run code chunk feature

Note: Please use this feature with caution because it may put your security at risk! Your machine can get hacked if someone makes you open a markdown with malicious code while script execution is enabled.

{
  "markdown-preview-enhanced.enableScriptExecution": true
}

More :CocList --input=markdown-preview-enhanced. commands

Keybindings

Shortcuts Functionality
esc Toggle sidebar TOC

Configurations

https://github.com/neoclide/coc.nvim/wiki/Using-the-configuration-file

Acknowledgements

The implementation of this project relies on vscode-markdown-preview-enhanced and mume.

License

University of Illinois/NCSA Open Source License


This extension is built with create-coc-extension