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

Background-color for code blocks in Markdown files #26

Open
4goodapp opened this issue Oct 23, 2018 · 3 comments
Open

Background-color for code blocks in Markdown files #26

4goodapp opened this issue Oct 23, 2018 · 3 comments

Comments

@4goodapp
Copy link

4goodapp commented Oct 23, 2018

Code blocks for Markdown file are rendered "incorrectly" :

htmlize

@hniksic
Copy link
Owner

hniksic commented Nov 10, 2019

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
Copy link
Author

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

@VladimirAlexiev
Copy link

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

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

3 participants