emacs-htmlize icon indicating copy to clipboard operation
emacs-htmlize copied to clipboard

Background-color for code blocks in Markdown files

Open 4goodapp opened this issue 7 years ago • 3 comments

Code blocks for Markdown file are rendered "incorrectly" :

htmlize

4goodapp avatar Oct 23 '18 14:10 4goodapp

There are two problems here: one that the color is incorrect, and another that the background color is applied just to the text and not to the whole square.

For the first problem, I need more information for reproducing it. On my Emacs I don't get the gray background at all, and if I try customizing e.g. markdown-pre-face, my customization seems respected by htmlize.

For the second problem, I don't know if it's possible to get that effect in the browser (inside a <pre>). If someone can show the desired HTML output, I'll make htmlize emit it.

hniksic avatar Nov 10 '19 15:11 hniksic

@hniksic For the first problem, I use Doom-one theme in a Markdown file. So maybe you can try it to check.

4goodapp avatar Jan 20 '20 20:01 4goodapp

@4goodapp How do you get syntax coloring in markdown? All my markdown code blocks are the same (a major letdown compared to org mode).

VladimirAlexiev avatar May 04 '23 15:05 VladimirAlexiev