diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 5ce75ec49..94dca32fc 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -109,6 +109,11 @@ By default ox-html now inlines webp images. This is the CSS class name to use for the top level content wrapper. +*** You can now configure ~org-html-scripts~ and ~org-html-style-default~ + +~org-html-scripts~ and ~org-html-style-default~ used to be constants, +you can now configure them. + *** Some faces now use fixed-pitch See https://orgmode.org/list/875z8njaol.fsf@protesilaos.com. diff --git a/lisp/ox-html.el b/lisp/ox-html.el index c1dbfc822..aa6284f12 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -232,7 +232,7 @@ property on the headline itself.") ("\\.\\.\\." . "…")) ; hellip "Regular expressions for special string conversion.") -(defconst org-html-scripts +(defcustom org-html-scripts "" - "Basic JavaScript that is needed by HTML files produced by Org mode.") + "Basic JavaScript that is needed by HTML files produced by Org mode." + :group 'org-export-html + :package-version '(Org . "9.5") + :type 'string) -(defconst org-html-style-default +(defcustom org-html-style-default "