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

option to ignore background color #45

Open
VladimirAlexiev opened this issue May 4, 2023 · 1 comment
Open

option to ignore background color #45

VladimirAlexiev opened this issue May 4, 2023 · 1 comment

Comments

@VladimirAlexiev
Copy link

VladimirAlexiev commented May 4, 2023

My emacs buffer looks like this:
image

I grab it using ox-clip and paste it to google docs, and it looks ugly:
image

After I remove extra line spacing in gdocs, it looks a bit better:
image

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

@VladimirAlexiev
Copy link
Author

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)))

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

1 participant