Closed andyprata closed 6 years ago
Hi! No problem. Did you export your document once as HTML to examine it in the browser with the inspector? Then you know exactly which CSS path you need for your concern.
Of course, if you only work for you, you can make your rules more important with !important
.
Here are the CSS files used for highlighting: https://github.com/isagalaev/highlight.js/tree/master/src/styles
I close the issue. If you have any questions, feel free to write.
Hi @cakebake thanks for the fast response.
I've figured it out now thanks for your help! I didn't realise that I had to go to the Settings of markdown-themeable-pdf and change the output type to HTML. Once I had the file as HTML I was able to inspect the element and find the right CSS block. In the end it was:
code.hljs.github-gist-css.python {
background-color: yellow !important;
}
Thanks again!
I think I have to write a better documentation for the v2, which concerns the functions ;)
I'm having trouble changing the background color of a fenced code block of python code.
Here's the CSS I'm using (stored in ~/.atom/markdown-themeable-pdf/styles.css):
Here's the Markdown: