hniksic / emacs-htmlize

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

Faces not recognized #13

Closed Hi-Angel closed 6 years ago

Hi-Angel commented 6 years ago

I'm using color-identifiers-mode with some custom setup to change most of the highlighting from the code. IOW the code highlight I see is drastically different from just the theme in use.

However htmlize-buffer makes html which instead looks like the theme in use.

Steps to reproduce:

  1. Open emacs -Q (it will open a scratch buffer with a comment).
  2. Use load-file to load htmlize.el
  3. Execute (face-remap-add-relative 'font-lock-comment-face '((:weight bold)))
  4. Execute htmlize-buffer

Expected result: resulting html should have a bold text. Actual result: bold keyword is ignored.

hniksic commented 6 years ago

Thanks for the report; face-remapping-alist should now be respected.