diff options
author | Ev Bogue <ev@evbogue.com> | 2020-01-26 10:39:14 -0600 |
---|---|---|
committer | Ev Bogue <ev@evbogue.com> | 2020-01-26 10:39:14 -0600 |
commit | 641a82a1caa3d1b6bce9b7f12948566c272d0c12 (patch) | |
tree | dfd4ad2ac60a859025222217adf5ae11ee662950 | |
parent | f74774f6346fa4a454237386d80216992c4b79f9 (diff) |
it turns out that there is no such thing as \n in html
-rw-r--r-- | render.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -93,7 +93,9 @@ function render (msg, keys, preview) { var renderer = new marked.Renderer(); renderer.paragraph = function (paragraph) { + console.log(paragraph) var array = paragraph.split(' ') + console.log(array) for (i = 0; i < array.length; i++) { word = array[i] @@ -113,8 +115,9 @@ function render (msg, keys, preview) { } } - paragraph = array.join(' ') - return paragraph + newgraph = array.join(' ') + + return newgraph + '<br /><br />' } renderer.link = function (href, title, text) { if ((href[0] == '@') || (href[0] == '%')) { |