xylomorph / argdown-pandoc-highlighting

MIT License
4 stars 2 forks source link

Background color of argdown codeblock #1

Open ggbetz opened 7 years ago

ggbetz commented 7 years ago

Hi! I use the very nice argdown-highlighting in codeblocks in a metropolis beamer presentation. Argdown-highlighting seems to overwrire the default background color with argdown-codeblock background color (i.e., white). Could this feature be turned off, so that the default background color of presentation is used for code-blocks, too?

folien06 verschoben

xylomorph commented 7 years ago

This is actually more a pandoc issue: Without using the --syntax-definition and --highlight-style options of pandoc, code blocks will be rendered in latex within latex-verbatim-environment. However, if you use these options, pandoc will use other latex-environments to enable syntax-highlighting for pdf/beamer export. These environments are defined by pandoc (the highlighting- and the Shaded-environment).

However, you can overwrite these environments with your own settings to customise e.g. background-color. Just configure these settings in an extra-tex file & provide pandoc with them (e.g. as describe here)