aboutsummaryrefslogtreecommitdiffstats
path: root/oni-org/oni-org.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-07-06 16:50:10 -0700
committerGravatar Tom Willemse2023-07-06 16:50:10 -0700
commit77b629bc53ef7a35a6aed2358048f3c4156081e8 (patch)
tree7e7fb5e8ca1ecb27b03c71d8806a65e6f0ded211 /oni-org/oni-org.el
parentde5e5ff04760d70431bf940f93107cfafdfc6cfd (diff)
downloademacs-config-77b629bc53ef7a35a6aed2358048f3c4156081e8.tar.gz
emacs-config-77b629bc53ef7a35a6aed2358048f3c4156081e8.zip
[oni-org] Export “” as escaped html entities
Diffstat (limited to 'oni-org/oni-org.el')
-rw-r--r--oni-org/oni-org.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el
index 453e74c..f1b2a11 100644
--- a/oni-org/oni-org.el
+++ b/oni-org/oni-org.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2023.0621.002708
+;; Version: 2023.0628.233444
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-bullets org-edna diminish all-the-icons olivetti form-feed org-pretty-table)
;; This program is free software; you can redistribute it and/or modify
@@ -772,7 +772,14 @@ This is an around advice for ‘org-html--svg-image’ as FUN."
(buffer-string)))
(funcall fun source attributes info)))
-(advice-add 'org-html--svg-image :around #'oni-org-html-svg-image-embed)
+(with-eval-after-load 'ox-hmtl
+ (advice-add 'org-html--format-image :around #'oni-org-html-svg-image-embed)
+ ;; These two I've added because when I try to upload text with either of these
+ ;; characters to Tekuti I just end up with sending ? for each. This is not an
+ ;; issue with org-mode, the generated HTML correctly contains these characters
+ ;; verbatim.
+ (add-to-list 'org-html-special-string-regexps (cons (rx "“") "&ldquo;"))
+ (add-to-list 'org-html-special-string-regexps (cons (rx "”") "&rdquo;")))
;;; Pomodoro