Hi!

Inline source code blocks are not fontified by the HTML backend anymore
(I have a document with such code blocks that exported fine two years
ago, with Org 7 or 8 I think).

If that's the intended behavior, then I would like to know the proper
way to recover the old behavior; otherwise, let me suggest this small
patch to remedy that issue.

>From 4682af888ca3b86eb05c6d40169725cca17136e3 Mon Sep 17 00:00:00 2001
From: Nicolas Berthier <nbe...@member.fsf.org>
Date: Mon, 15 May 2017 15:44:11 +0100
Subject: [PATCH] Fontify inline source blocks when exporting to HTML

* lisp/ox-html.el (org-html-inline-src-block): Fontify inline source
blocks.
---
 lisp/ox-html.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index fc91e96..fef79ca 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2685,7 +2685,8 @@ contextual information."
 	 (let ((lbl (and (org-element-property :name inline-src-block)
 			 (org-export-get-reference inline-src-block info))))
 	   (if (not lbl) "" (format " id=\"%s\"" lbl)))))
-    (format "<code class=\"src src-%s\"%s>%s</code>" lang label code)))
+    (format "<code class=\"src src-%s\"%s>%s</code>" lang label
+	    (org-html-fontify-code code lang))))
 
 ;;;; Inlinetask
 
-- 
2.7.0.rc0.20.g4b9ab0e

Best regards,
-- 
Nicolas Berthier                                        FSF Member #7975

Reply via email to