diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-13 14:05:47 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-13 14:06:16 +0000 |
commit | 14964bc6a4b232b61d06a12fab14e94359b7a14f (patch) | |
tree | fa0dcf738130f4d666fab181f493223681e7b010 | |
parent | cd956435bae189b2aaf5d85fa3e6783b025ca86e (diff) |
Add a couple of sx-encoding-clean-content
-rw-r--r-- | sx-question-list.el | 2 | ||||
-rw-r--r-- | sx-question-mode.el | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sx-question-list.el b/sx-question-list.el index 70e069b..ef5d3f5 100644 --- a/sx-question-list.el +++ b/sx-question-list.el @@ -231,7 +231,7 @@ Used in the questions list to indicate a question was updated \"4d ago\"." 'sx-question-list-answers)) (concat (propertize - .title + (sx-encoding-clean-content .title) 'face (if (sx-question--read-p .data) 'sx-question-list-read-question ;; Increment `sx-question-list--unread-count' for the mode-line. diff --git a/sx-question-mode.el b/sx-question-mode.el index a7a8477..4e35fd9 100644 --- a/sx-question-mode.el +++ b/sx-question-mode.el @@ -167,7 +167,7 @@ QUESTION must be a data structure returned by `json-read'." ;; Print everything (sx-assoc-let question (insert sx-question-mode-header-title - (propertize .title + (propertize (sx-encoding-clean-content .title) 'font-lock-face 'sx-question-mode-title 'sx-question-mode--section 1)) ;; Sections are hidden with overlays @@ -197,8 +197,8 @@ QUESTION must be a data structure returned by `json-read'." (sx-question-mode--wrap-in-overlay '(face sx-question-mode-content-face) (insert - (sx-encoding-clean-content - .body_markdown) "\n"))))) + (sx-encoding-clean-content .body_markdown) + "\n"))))) (defmacro sx-question-mode--wrap-in-overlay (properties &rest body) "Execute BODY and wrap any inserted text in an overlay. |