mirror of https://github.com/status-im/codimd.git
Revert mdTokens changes
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
This commit is contained in:
parent
cec3c45c2e
commit
731cec6966
|
@ -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)$',
|
||||||
|
|
Loading…
Reference in New Issue