From 838d44bd5c210acaad9feaf735f6fe0c1c8d7162 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Tue, 30 Apr 2013 17:51:26 +0100 Subject: [PATCH] Load and use Markdown parser If the file we are editing is a markdown file and we have a stickyTab open, send the parsed editor content to the document DOM for display --- editor.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/editor.php b/editor.php index a473752..9f5cfd3 100644 --- a/editor.php +++ b/editor.php @@ -11,10 +11,11 @@ + '; @@ -198,6 +199,8 @@ function createNewCMInstance(num) { } top.ICEcoder.stickyTab.document.documentElement.appendChild(style); } + } else if (["md"].indexOf(fileExt) > -1) { + top.ICEcoder.stickyTab.document.documentElement.innerHTML = mmd(window['cM'+num].getValue()); } }; }