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
md.meta = {}
delete md.metaError
const mdEnv = {}
window.mdTokens = md.parse(value, mdEnv)
let rendered = md.renderer.render(window.mdTokens, md.options, mdEnv)
var rendered = md.render(value)
if (md.meta.type && md.meta.type === 'slide') {
var slideOptions = {
separator: '^(\r\n?|\n)---(\r\n?|\n)$',