aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEv Bogue <ev@evbogue.com>2020-01-26 10:39:14 -0600
committerEv Bogue <ev@evbogue.com>2020-01-26 10:39:14 -0600
commit641a82a1caa3d1b6bce9b7f12948566c272d0c12 (patch)
treedfd4ad2ac60a859025222217adf5ae11ee662950
parentf74774f6346fa4a454237386d80216992c4b79f9 (diff)
it turns out that there is no such thing as \n in html
-rw-r--r--render.js7
1 files 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 + '<br /><br />'
}
renderer.link = function (href, title, text) {
if ((href[0] == '@') || (href[0] == '%')) {