From fc881229f47d95544019fcea034d34920c0f8920 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 26 Sep 2013 21:06:52 +0100 Subject: [PATCH] Treat markdown as text in editor closes #857 - markdown is inserted into codemirror with .text() not .html() --- core/client/views/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/views/editor.js b/core/client/views/editor.js index 904231bf47..c8802b5bc5 100644 --- a/core/client/views/editor.js +++ b/core/client/views/editor.js @@ -281,7 +281,7 @@ this.addSubview(new PublishBar({el: "#publish-bar", model: this.model})).render(); this.$('#entry-title').val(this.model.get('title')).focus(); - this.$('#entry-markdown').html(this.model.get('markdown')); + this.$('#entry-markdown').text(this.model.get('markdown')); this.initMarkdown(); this.renderPreview();