Fontify inline source blocks when exporting to HTML
* lisp/ox-html.el (org-html-inline-src-block): Fontify inline source blocks.
This commit is contained in:
parent
3c7ef9f8e8
commit
2c9f6fcef9
|
@ -2624,8 +2624,10 @@ CONTENTS is nil. INFO is a plist holding contextual information."
|
||||||
"Transcode an INLINE-SRC-BLOCK element from Org to HTML.
|
"Transcode an INLINE-SRC-BLOCK element from Org to HTML.
|
||||||
CONTENTS holds the contents of the item. INFO is a plist holding
|
CONTENTS holds the contents of the item. INFO is a plist holding
|
||||||
contextual information."
|
contextual information."
|
||||||
(let ((lang (org-element-property :language inline-src-block))
|
(let* ((lang (org-element-property :language inline-src-block))
|
||||||
(code (org-element-property :value inline-src-block))
|
(code (org-html-fontify-code
|
||||||
|
(org-element-property :value inline-src-block)
|
||||||
|
lang))
|
||||||
(label
|
(label
|
||||||
(let ((lbl (and (org-element-property :name inline-src-block)
|
(let ((lbl (and (org-element-property :name inline-src-block)
|
||||||
(org-export-get-reference inline-src-block info))))
|
(org-export-get-reference inline-src-block info))))
|
||||||
|
|
Loading…
Reference in New Issue