From 641a82a1caa3d1b6bce9b7f12948566c272d0c12 Mon Sep 17 00:00:00 2001 From: Ev Bogue Date: Sun, 26 Jan 2020 10:39:14 -0600 Subject: it turns out that there is no such thing as \n in html --- render.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/render.js b/render.js index 4e16168..583c09e 100644 --- a/render.js +++ b/render.js @@ -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 + '

' } renderer.link = function (href, title, text) { if ((href[0] == '@') || (href[0] == '%')) { -- cgit v1.2.3-70-g09d2