From d58718085dab45e5b8a80daa5643f94d917a383a Mon Sep 17 00:00:00 2001 From: Moogen Tian Date: Fri, 12 May 2017 21:55:29 +0800 Subject: [PATCH] Fix markdown-header-face inherit from nil error When `markdown-header-scaling` is nil, the :inherit attribute value of `markdown-header-face` will be `(nil font-lock-function-name-faces)`. When exporting html from org-mode file which contains markdown source block, it will lead to an "Invalid face" error. --- markdown-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown-mode.el b/markdown-mode.el index c319f02..44495b1 100644 --- a/markdown-mode.el +++ b/markdown-mode.el @@ -2165,8 +2165,8 @@ Used when `markdown-header-scaling' is non-nil." (defun markdown-make-header-faces () "Build the faces used for Markdown headers." (defface markdown-header-face - `((t (:inherit (,(when markdown-header-scaling 'variable-pitch) - font-lock-function-name-face) + `((t (:inherit (,@(when markdown-header-scaling 'variable-pitch) + font-lock-function-name-face) :weight bold))) "Base face for headers." :group 'markdown-faces) -- 2.11.4.GIT