hniksic / emacs-htmlize

Convert buffer text and decorations to HTML.
192 stars 45 forks source link

Background-color for code blocks in Markdown files #26

Open 4goodapp opened 5 years ago

4goodapp commented 5 years ago

Code blocks for Markdown file are rendered "incorrectly" :

htmlize

hniksic commented 4 years ago

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.

4goodapp commented 4 years ago

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

VladimirAlexiev commented 1 year ago

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