Fix meta error not clear on before rendering
This commit is contained in:
parent
1de4242473
commit
e98278492e
2 changed files with 2 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue