From d4be33a6f00bd990b75c0ba234a520c272090028 Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 31 Jan 2019 15:19:13 -1000 Subject: Render code in textareas monospaced --- lib/render.js | 1 + 1 file changed, 1 insertion(+) 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 { -- cgit v1.2.3