From 85b9b8d2b392210f350af5f7cc96456d0c2002cb Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Wed, 12 Nov 2014 22:29:47 -0500 Subject: Pull in question body Added this field to the filter as well. --- sx-question-mode.el | 7 +++---- 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." -- cgit v1.2.3