aboutsummaryrefslogtreecommitdiff
path: root/page/renderJson.go
diff options
context:
space:
mode:
Diffstat (limited to 'page/renderJson.go')
-rw-r--r--page/renderJson.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/page/renderJson.go b/page/renderJson.go
index 52e707d..9359b69 100644
--- a/page/renderJson.go
+++ b/page/renderJson.go
@@ -66,6 +66,13 @@ func RenderJson(w http.ResponseWriter, r *http.Request,
}
if r.URL.Query().Get("markdown") == "1" {
+ if p.Vars != nil {
+ p.Vars["RenderingMarkdownOnly"] = true
+ } else {
+ p.Vars = map[string]interface{}{
+ "RenderingMarkdownOnly": true,
+ }
+ }
// Tossing the error, since it would've been revealed above
md, _ := p.GetMarkdown()
out["Markdown"] = md