From 32a86d6e8bf6ffedf4c7dd37e49f58cf07a95e80 Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 26 May 2017 11:39:28 -1000 Subject: Add link to show markdown source --- lib/serve.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index 98a34e0..4481439 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1079,8 +1079,13 @@ Serve.prototype.renderThreadPaginated = function (opts, feedId, q) { } Serve.prototype.renderRawMsgPage = function (id) { + var showMarkdownSource = (this.query.raw === 'md') + var raw = !showMarkdownSource return pull( - this.app.render.renderFeeds(true), + this.app.render.renderFeeds({ + raw: raw, + markdownSource: showMarkdownSource + }), pull.map(u.toHTML), this.wrapMessages(), this.wrapPage(id) -- cgit v1.2.3