From fbdfff2306955ed1d0e8a9b1831f46c27fec35ad Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Tue, 26 Jan 2016 00:01:26 +0000 Subject: Call `markdown-syntax-propertize` while rendering question buffers Fix #311, Fix #312, Fix #313. --- sx-question-print.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sx-question-print.el') diff --git a/sx-question-print.el b/sx-question-print.el index fab2999..6599532 100644 --- a/sx-question-print.el +++ b/sx-question-print.el @@ -772,6 +772,8 @@ move point, don't create the code-block button." (let ((beg (line-beginning-position))) ;; To identify code-blocks we need to be at start of line. (goto-char beg) + (when (fboundp 'markdown-syntax-propertize) + (markdown-syntax-propertize (point) (point-max))) (when (markdown-match-pre-blocks (line-end-position)) (unless dont-fontify (sx-babel--make-pre-button beg (point))) -- cgit v1.2.3