summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorWu Cheng-Han2017-01-21 12:50:02 +0800
committerWu Cheng-Han2017-01-21 12:50:02 +0800
commite98278492e3c80816d54e1a6841548409c8a4d80 (patch)
tree975bcf0f3363dc80d9e726551d90bd78e514587f /public
parent1de4242473b74afdb2d3e358e3b213ef156ca0de (diff)
Fix meta error not clear on before rendering
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js1
-rw-r--r--public/js/pretty.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js
index a018e513..6e55fa17 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -3445,6 +3445,7 @@ function updateViewInner() {
var value = editor.getValue();
var lastMeta = md.meta;
md.meta = {};
+ delete md.metaError;
var rendered = md.render(value);
if (md.meta.type && md.meta.type === 'slide') {
var slideOptions = {
diff --git a/public/js/pretty.js b/public/js/pretty.js
index c1a471a1..b946d423 100644
--- a/public/js/pretty.js
+++ b/public/js/pretty.js
@@ -22,6 +22,7 @@ var markdown = $("#doc.markdown-body");
var text = markdown.text();
var lastMeta = md.meta;
md.meta = {};
+delete md.metaError;
var rendered = md.render(text);
if (md.meta.type && md.meta.type === 'slide') {
var slideOptions = {