mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 12:20:16 +01:00
🎨 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:
parent
cdf60c1105
commit
ca24bea936
5 changed files with 51 additions and 40 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue