aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 475965a..a29a21b 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -368,6 +368,18 @@ RenderMsg.prototype.encrypted = function (cb) {
RenderMsg.prototype.markdown = function (cb) {
if (this.opts.markdownSource)
return this.markdownSource(this.c.text, this.c.mentions)
+
+ if (this.opts.dualMarkdown) {
+ var self = this
+ return h('table', {style: 'width: 100%'}, h('tr', [
+ h('td', {style: 'width: 50%'},
+ {innerHTML: this.render.markdown(this.c.text, this.c.mentions)}),
+ h('td', {style: 'width: 50%'},
+ {innerHTML: this.render.markdown(this.c.text, this.c.mentions,
+ {ssbcMd: true})})
+ ])).outerHTML
+ }
+
return this.render.markdown(this.c.text, this.c.mentions)
}