aboutsummaryrefslogtreecommitdiff
path: root/sx-question-mode.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-12 22:29:47 -0500
committerSean Allred <code@seanallred.com>2014-11-12 22:29:47 -0500
commit85b9b8d2b392210f350af5f7cc96456d0c2002cb (patch)
tree502c7cf09597515e7f640361a04a580443cd9faa /sx-question-mode.el
parentc7775348c2a83e727ec53e104aa4fd6530465f3c (diff)
Pull in question body
Added this field to the filter as well.
Diffstat (limited to 'sx-question-mode.el')
-rw-r--r--sx-question-mode.el7
1 files changed, 3 insertions, 4 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.