diff options
author | Wu Cheng-Han | 2017-01-21 12:50:02 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-01-21 12:50:02 +0800 |
commit | e98278492e3c80816d54e1a6841548409c8a4d80 (patch) | |
tree | 975bcf0f3363dc80d9e726551d90bd78e514587f /public | |
parent | 1de4242473b74afdb2d3e358e3b213ef156ca0de (diff) |
Fix meta error not clear on before rendering
Diffstat (limited to 'public')
-rw-r--r-- | public/js/index.js | 1 | ||||
-rw-r--r-- | public/js/pretty.js | 1 |
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 = { |