aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-11-08 14:39:07 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-11-08 14:46:09 -1000
commita989374f143a885920e640296902d5bbf4fe8086 (patch)
treefdc67fabd09a199980ed426551c58da033cb9e80 /lib/serve.js
parentc9f375a151cc8caa74c341f054e8a3e0cdc96b52 (diff)
downloadpatchfoo-a989374f143a885920e640296902d5bbf4fe8086.tar.gz
patchfoo-a989374f143a885920e640296902d5bbf4fe8086.zip
Add dualMarkdownPreview option
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 7e0ee26..cd63905 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -3968,6 +3968,8 @@ Serve.prototype.composer = function (opts, cb) {
self.app.unboxMessages(),
self.app.render.renderFeeds({
raw: raw,
+ dualMarkdown: self.query.dualMd != null ? self.query.dualMd :
+ self.conf.dualMarkdownPreview,
filter: self.query.filter,
}),
pull.drain(function (el) {