diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-01-26 00:01:26 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-01-26 00:01:26 +0000 |
commit | fbdfff2306955ed1d0e8a9b1831f46c27fec35ad (patch) | |
tree | b95fed65d01fa84e17b6bdb5dae61c9328fb2552 | |
parent | 71a4cc7590a0bb5521361992f03bb466b033604c (diff) |
Call `markdown-syntax-propertize` while rendering question buffers
Fix #311, Fix #312, Fix #313.
-rw-r--r-- | sx-question-print.el | 2 |
1 files changed, 2 insertions, 0 deletions
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))) |