From 49e757060fdf635f920dbc150be2fafc224e7d9f Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 17 Apr 2016 14:33:40 +0000 Subject: [PATCH] Add a trailing newline to wiki content so that markdeep formats it correctly as I type it. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3210 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- packages/cory/wiki/wiki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cory/wiki/wiki.js b/packages/cory/wiki/wiki.js index 5b1e9c44..ed3f3647 100644 --- a/packages/cory/wiki/wiki.js +++ b/packages/cory/wiki/wiki.js @@ -82,7 +82,7 @@ function editPage(event) { } function textChanged() { var preview = document.getElementById("preview"); - preview.innerHTML = markdeep.format(gEditor.getValue(), true); + preview.innerHTML = markdeep.format(gEditor.getValue() + "\\n", false); } window.markdeepOptions = {mode: 'script'};