Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customize markdown code block highlighting #191

Closed
msvechla opened this issue Jun 23, 2022 · 2 comments
Closed

customize markdown code block highlighting #191

msvechla opened this issue Jun 23, 2022 · 2 comments

Comments

@msvechla
Copy link

Hi and thanks for this awesome theme!

I was trying to customize the background color of fenced code blocks in markdown files via the following snippet in my init.lua:

require('github-theme').setup({
    dev = true,
    overrides = function(c)
        return {
          markdownCodeBlock = { bg = "#fb94ff" },
        }
    end
})

This however has no effect. I tried multiple things but could not get it working.
Do you have any idea what I am doing wrong?

Thanks a lot for your help!

@ful1e5
Copy link
Member

ful1e5 commented Jul 7, 2022

Try with the markdownTSLiteral highlight if you are using treesiitter.

require('github-theme').setup({
    dev = true,
    overrides = function(c)
        return {
          markdownTSLiteral = { bg = "#fb94ff" },
        }
    end
})

@ful1e5
Copy link
Member

ful1e5 commented May 5, 2023

Closing due to inactivity. Can reopen later.

@ful1e5 ful1e5 closed this as completed May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants