♻️ 移除旧版中的行级元素实现代码 https://github.com/siyuan-note/siyuan/issues/6819

This commit is contained in:
Liang Ding 2022-12-08 18:22:55 +08:00
parent fb1c002500
commit b3599ee150
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 4 additions and 24 deletions

View file

@ -1073,18 +1073,6 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool) (re
}
switch n.Type {
case ast.NodeTagOpenMarker: // 配置标签开始标记符
if !wysiwyg {
n.Type = ast.NodeText
n.Tokens = []byte(Conf.Export.TagOpenMarker)
return ast.WalkContinue
}
case ast.NodeTagCloseMarker: // 配置标记结束标记符
if !wysiwyg {
n.Type = ast.NodeText
n.Tokens = []byte(Conf.Export.TagCloseMarker)
return ast.WalkContinue
}
case ast.NodeSuperBlockOpenMarker, ast.NodeSuperBlockLayoutMarker, ast.NodeSuperBlockCloseMarker:
if !wysiwyg {
unlinks = append(unlinks, n)