Revert mdTokens changes

Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
This commit is contained in:
Yukai Huang 2020-07-09 17:25:07 +08:00
parent cec3c45c2e
commit 731cec6966
No known key found for this signature in database
GPG Key ID: A76CBD50B22052C0
1 changed files with 1 additions and 3 deletions

View File

@ -2786,9 +2786,7 @@ function updateViewInner () {
var lastMeta = md.meta var lastMeta = md.meta
md.meta = {} md.meta = {}
delete md.metaError delete md.metaError
const mdEnv = {} var rendered = md.render(value)
window.mdTokens = md.parse(value, mdEnv)
let rendered = md.renderer.render(window.mdTokens, md.options, mdEnv)
if (md.meta.type && md.meta.type === 'slide') { if (md.meta.type && md.meta.type === 'slide') {
var slideOptions = { var slideOptions = {
separator: '^(\r\n?|\n)---(\r\n?|\n)$', separator: '^(\r\n?|\n)---(\r\n?|\n)$',