branch: externals/org
commit 24b7fde23d8aede01a1157121064e84c449345ed
Author: Nikolaos Chatzikonstantinou <[email protected]>
Commit: Ihor Radchenko <[email protected]>
org-html-style-default: Add lowercase c to src languages
* lisp/ox-html.el (org-html-style-default): Treat #+begin_src c
as src block when exporting to HTML.
---
etc/ORG-NEWS | 6 ++++++
lisp/ox-html.el | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 0c4cdd3b62..6cb9eb7a73 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -277,6 +277,12 @@ ditaa version of at least 0.11.0.
# adding new customizations, or changing the interpretation of the
# existing customizations.
+*** ~org-html-style-default~ now highlights =#+begin_src c= (lowecase) blocks
+
+The default value have been changed, adding ~pre.src-c:before {
+content: 'C'; }~ (lowercase =c=) that parallels ~pre.src-C:before {
+content: 'C'; }~ (uppercase =C=).
+
*** New context available to save in archived headings
~org-archive-save-context-info~ can now contain ~olid~ symbol to save
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index e3ea14b4d4..ae700b6e66 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -313,6 +313,7 @@ This affects IDs that are determined from the ID property.")
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-authinfo::before { content: 'Authinfo'; }
+ pre.src-c:before { content: 'C'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
@@ -454,7 +455,7 @@ You can use `org-html-head' and `org-html-head-extra' to
add to
this style. If you don't want to include this default style,
customize `org-html-head-include-default-style'."
:group 'org-export-html
- :package-version '(Org . "9.5")
+ :package-version '(Org . "9.8")
:type 'string)