mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🎨 Improve export preview https://github.com/siyuan-note/siyuan/issues/13857
This commit is contained in:
parent
9a77f05c43
commit
b81677bf4b
3 changed files with 12 additions and 7 deletions
|
|
@ -1036,13 +1036,7 @@ func CreateWithMarkdown(tags, boxID, hPath, md, parentID, id string, withMath bo
|
|||
luteEngine.SetHTMLTag2TextMark(true)
|
||||
if strings.HasPrefix(clippingHref, "https://ld246.com/article/") || strings.HasPrefix(clippingHref, "https://liuyun.io/article/") {
|
||||
// 改进链滴剪藏 https://github.com/siyuan-note/siyuan/issues/13117
|
||||
luteEngine.SetInlineAsterisk(true)
|
||||
luteEngine.SetInlineUnderscore(true)
|
||||
luteEngine.SetSup(true)
|
||||
luteEngine.SetSub(true)
|
||||
luteEngine.SetTag(true)
|
||||
luteEngine.SetInlineMath(true)
|
||||
luteEngine.SetGFMStrikethrough(true)
|
||||
EnableLuteInlineSyntax(luteEngine)
|
||||
}
|
||||
dom := luteEngine.Md2BlockDOM(md, false)
|
||||
retID, err = createDocsByHPath(box.ID, hPath, dom, parentID, id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue