mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
♻️ 移除旧版中的行级元素实现代码 https://github.com/siyuan-note/siyuan/issues/6819
This commit is contained in:
parent
fb1c002500
commit
b3599ee150
6 changed files with 4 additions and 24 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -700,7 +700,7 @@ func query2Stmt(queryStr string) (ret string) {
|
|||
if !entering {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
if ast.NodeTag == n.Type || (n.IsTextMarkType("tag")) {
|
||||
if n.IsTextMarkType("tag") {
|
||||
tags = append(tags, n.Text())
|
||||
}
|
||||
return ast.WalkContinue
|
||||
|
|
|
|||
|
|
@ -46,8 +46,6 @@ func renderOutline(node *ast.Node, luteEngine *lute.Lute) (ret string) {
|
|||
return ast.WalkContinue
|
||||
}
|
||||
switch n.Type {
|
||||
case ast.NodeTagOpenMarker, ast.NodeTagCloseMarker:
|
||||
buf.WriteByte('#')
|
||||
case ast.NodeBlockRef:
|
||||
buf.WriteString(html.EscapeString(treenode.GetDynamicBlockRefText(n)))
|
||||
return ast.WalkSkipChildren
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue