Open VladimirAlexiev opened 1 year ago
I currently do it with defadvice
(setq-default htmlize-ignore-background t) ; ignore background color
(use-package htmlize
:config
(defadvice htmlize-face-background (around htmlize-ignore-background activate)
"Ignore background if htmlize-ignore-background is set"
(unless htmlize-ignore-background ad-do-it)))
My emacs buffer looks like this:
I grab it using ox-clip and paste it to google docs, and it looks ugly:
After I remove extra line spacing in gdocs, it looks a bit better:
But still the best way is to have an option to ignore the background color. I think the right function to change is: https://github.com/hniksic/emacs-htmlize/blob/master/htmlize.el#L947