A Neovim plugin for rendering markdown files in terminal
- 💡 Any element (treesitter, regex_group) can be replaced with icons
- 💪 Built-in
markdown elements
config,markdown
files work out of the box - 💞 Built-in commands
MarkliveEnable
,MarkliveDisable
,MarkliveToggle
to enable/disable/toggle themarklive
feature - 🛴 Supports automatically disabling the
marklive
feature on the current line for easy editing - 🔎 Highly configurable, allowing custom icons for each markdown element, and even custom displays for
html
files
- Neovim >= 0.5.0
- nvim-treesitter: Used for parsing files
- Nerd Fonts: (optional) Used for displaying icons
Using lazy.nvim
{
"yelog/marklive.nvim",
dependencies = { 'nvim-treesitter/nvim-treesitter' },
lazy = true,
ft = "markdown",
opts = {}
}
Using packer.nvim
use {
'yelog/marklive.nvim',
requires = { 'nvim-treesitter/nvim-treesitter' },
}
Using dein
call dein#add('nvim-treesitter/nvim-treesitter')
call dein#add('yelog/marklive.nvim')
Usingn vim-plug
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'yelog/marklive.nvim'
The default configuration for marklive.nvim is shown in the link config.lua
If you don't want to use a Nerd Font, you can replace the icons with Unicode symbols.
- Implement background style rendering for Markdown’s
Block Quote
- Implement style rendering for Markdown’s
Code Block
marklive.nvim is licensed under the Apache 2.0 license