aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-31 15:19:13 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-31 15:19:49 -1000
commitd4be33a6f00bd990b75c0ba234a520c272090028 (patch)
treec92948dfff434d9e37f65a16f788f65363736c27
parent6c896844bd483f98e57fc9c5528f66a0bb63667f (diff)
downloadpatchfoo-d4be33a6f00bd990b75c0ba234a520c272090028.tar.gz
patchfoo-d4be33a6f00bd990b75c0ba234a520c272090028.zip
Render code in textareas monospaced
-rw-r--r--lib/render.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/render.js b/lib/render.js
index 09030db..8f2e56c 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -82,6 +82,7 @@ MdRenderer.prototype.code = function (code, lang, escaped) {
return h('div', h('textarea', {
cols: 80,
rows: u.rows(code),
+ style: 'font-family: monospace',
innerHTML: escaped ? code : u.escapeHTML(code)
})).outerHTML
} else {