Replies: 1 comment 1 reply
-
|
Added support for this feature here: 10126ef Nothing is configured out of the box, it's based on the text prefix inside the vim.api.nvim_set_hl(0, 'Red', { bg = '#ff0000' })
require('render-markdown').setup({
inline_highlight = {
custom = {
important = { prefix = '!', highlight = 'Red' },
},
},
})It also supports the alternative syntax like if you want You can re-use existing highlight groups from your colorscheme rather than creating custom ones, I create one in the example above for consistency. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would love for different colored highlights, like in
==...==I've been usingr==...==for red but it's messy when you highlight words in the middle, or have more than 1 highlight in the line.I've seen
=={red}...==in the Obsidian Extended Markdown Syntax plugin, which is better.It would be really useful to have this in neovim too, as Obsidian is a bit heavy...
Maybe a highlight tag system like Obsidian Extended Markdown Syntax plugin, where you define a tag and it's highlight? Or just some predefined new colors, like red, blue and a muted text (I use that a lot too)
==!...====$...====%...==Beta Was this translation helpful? Give feedback.
All reactions