diff options
author | Sean Allred <code@seanallred.com> | 2014-11-12 22:29:47 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-11-12 22:29:47 -0500 |
commit | 85b9b8d2b392210f350af5f7cc96456d0c2002cb (patch) | |
tree | 502c7cf09597515e7f640361a04a580443cd9faa | |
parent | c7775348c2a83e727ec53e104aa4fd6530465f3c (diff) |
Pull in question body
Added this field to the filter as well.
-rw-r--r-- | sx-question-mode.el | 7 | ||||
-rw-r--r-- | sx-question.el | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el index 48c82a4..b93cc3c 100644 --- a/sx-question-mode.el +++ b/sx-question-mode.el @@ -193,10 +193,9 @@ QUESTION must be a data structure returned by `json-read'." (insert sx-question-mode-separator) (sx-question-mode--wrap-in-overlay '(face sx-question-mode-content-face) - (insert - ;; @TODO: This is temporary, of course. It prevents - ;; errors while the filters aren't setup yet. - (or .body_markdown "BODY") "\n"))))) + (insert + (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. diff --git a/sx-question.el b/sx-question.el index 0142929..5aab158 100644 --- a/sx-question.el +++ b/sx-question.el @@ -30,7 +30,7 @@ (require 'sx-method) (defvar sx-question-browse-filter - '(nil (user.profile_image shallow_user.profile_image))) + '(question.body_markdown (user.profile_image shallow_user.profile_image))) (defun sx-question-get-questions (site &optional page) "Get the page PAGE of questions from SITE." |