diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-05-26 11:39:28 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-05-31 16:08:59 -1000 |
commit | 32a86d6e8bf6ffedf4c7dd37e49f58cf07a95e80 (patch) | |
tree | 74648045a4f0b5f609cedec71641f727f9d34bac /lib/serve.js | |
parent | 95a25a44b6a1b9f4124030a0c4ec658f63f3e307 (diff) | |
download | patchfoo-32a86d6e8bf6ffedf4c7dd37e49f58cf07a95e80.tar.gz patchfoo-32a86d6e8bf6ffedf4c7dd37e49f58cf07a95e80.zip |
Add link to show markdown source
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 7 |
1 files changed, 6 insertions, 1 deletions
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) |