Org htmlize: enable highlight-numbers
This commit is contained in:
parent
a7e64412fc
commit
f074def12e
14
config.org
14
config.org
|
@ -5859,6 +5859,20 @@ to copy the content of the block.
|
|||
(advice-add 'org-html-fixed-width :around #'org-html-block-collapsable)
|
||||
(advice-add 'org-html-property-drawer :around #'org-html-block-collapsable))
|
||||
#+end_src
|
||||
|
||||
***** Include extra font-locking in htmlize
|
||||
|
||||
Org uses [[https://github.com/hniksic/emacs-htmlize][htmlize.el]] to export buffers with syntax highlighting.
|
||||
|
||||
The works fantastically, for the most part. Minor modes that provide
|
||||
font-locking are /not/ loaded, and so do not impact the result.
|
||||
|
||||
By enabling these modes in ~htmlize-before-hook~ we can correct this behaviour.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(add-hook 'htmlize-before-hook #'highlight-numbers--turn-on)
|
||||
#+end_src
|
||||
|
||||
***** Handle table overflow
|
||||
In order to accommodate wide tables ---particularly on mobile devices--- we want
|
||||
to set a maximum width and scroll overflow. Unfortunately, this cannot be applied
|
||||
|
|
Loading…
Reference in New Issue