Org export filters only work in emacs27 and above apparently. Or maybe whichever version of org I have installed. At this point I just need to assume nothing works in emacs26 I guess.
This commit is contained in:
parent
37897c4872
commit
6b5b21df6c
1 changed files with 6 additions and 5 deletions
11
config.org
11
config.org
|
@ -486,11 +486,12 @@ Settings for export, fairly basic because the only thing I regularly export is H
|
||||||
Export non-breaking spaces properly; from, believe it or not, [[https://orgmode.org/manual/Advanced-Export-Configuration.html][the Org Manual]].
|
Export non-breaking spaces properly; from, believe it or not, [[https://orgmode.org/manual/Advanced-Export-Configuration.html][the Org Manual]].
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(defun my-html-filter-nobreaks (text backend info)
|
(unless (version< emacs-version "27")
|
||||||
(when (org-export-derived-backend-p backend 'html)
|
(defun my-html-filter-nobreaks (text backend info)
|
||||||
(replace-regexp-in-string " " " " text)))
|
(when (org-export-derived-backend-p backend 'html)
|
||||||
(add-to-list 'org-export-filter-plain-text-functions
|
(replace-regexp-in-string " " " " text)))
|
||||||
'my-html-filter-nobreaks)
|
(add-to-list 'org-export-filter-plain-text-functions
|
||||||
|
'my-html-filter-nobreaks))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Packages
|
*** Packages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue