eldritch-theme / eldritch.nvim

A theme for the Ancient Ones! (NVIM)
MIT License
172 stars 6 forks source link

Custom colours for markdown italics now working #13

Closed kamransoomro84 closed 2 months ago

kamransoomro84 commented 2 months ago

I have added custom colours for markdown italics:

on_highlights = function(highlights, colors)
    highlights["@markup.strong"] = { fg = colors.magenta, bold = true }
    highlights["@markup.emphasis"] = { fg = colors.pink, italic = true }
end

But this doesn't seem to work. The bold works fine. Any suggestions?

kamransoomro84 commented 2 months ago

Turns out the markdown_inline parser decodes it as @markup.italic and that works.