MeanderingProgrammer / markdown.nvim

Plugin to improve viewing Markdown files in Neovim
MIT License
504 stars 20 forks source link

question: How can I remove background of code block #52

Closed realhackcraft closed 1 week ago

realhackcraft commented 1 week ago

I want to remove the background color for the code block, since I have a transparent terminal setup.

realhackcraft commented 1 week ago

I would like the syntax highlighting and the language name + icon, just no background.

MeanderingProgrammer commented 1 week ago

Was not supported before.

Added this feature here: https://github.com/MeanderingProgrammer/markdown.nvim/commit/308f9a826e371e33512234e4604cf581fe1d4ef8.

Please update the plugin and set the following:

require('render-markdown').setup({
    code = { style = 'language' },
})
realhackcraft commented 1 week ago

Thank you!

realhackcraft commented 1 week ago

With this fix, I've noticed that the background for the langauge icon and name is stills there. Also unrelated, I would also like it if inline code didn't have the background as well.

realhackcraft commented 1 week ago
Screenshot 2024-07-08 at 20 59 42 Screenshot 2024-07-08 at 20 59 54
MeanderingProgrammer commented 1 week ago

Ah, fair enough!

Updated the behavior of code style here: https://github.com/MeanderingProgrammer/markdown.nvim/commit/e19ed93d75216f8535ede4d401e56ef478856861

Should accomplish both of these.

realhackcraft commented 1 week ago

Thank you, it works perfectly on my machine now!