🎨 Improve handling of assets when exporting to Word .docx format https://github.com/siyuan-note/siyuan/issues/15253

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-09 19:11:41 +08:00
parent cdf60c1105
commit ca24bea936
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 51 additions and 40 deletions

View file

@ -65,7 +65,7 @@ func docTagSpans(n *ast.Node) (ret []*Span) {
func docTitleImgAsset(root *ast.Node, boxLocalPath, docDirLocalPath string) *Asset {
if p := treenode.GetDocTitleImgPath(root); "" != p {
if !util.IsAssetLinkDest([]byte(p)) {
if !util.IsAssetLinkDest([]byte(p), false) {
return nil
}