mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 23:36:10 +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
03b5067b9e
commit
0bc96f4d75
2 changed files with 15 additions and 11 deletions
|
|
@ -316,8 +316,12 @@ func FilterSelfChildDocs(paths []string) (ret []string) {
|
|||
return
|
||||
}
|
||||
|
||||
func IsAssetLinkDest(dest []byte, includePublic bool) bool {
|
||||
return bytes.HasPrefix(dest, []byte("assets/")) || (includePublic && bytes.HasPrefix(dest, []byte("public/")))
|
||||
func IsAssetLinkDest(dest []byte, includeServePath bool) bool {
|
||||
return bytes.HasPrefix(dest, []byte("assets/")) ||
|
||||
(includeServePath && (bytes.HasPrefix(dest, []byte("emojis/")) ||
|
||||
bytes.HasPrefix(dest, []byte("plugins/")) ||
|
||||
bytes.HasPrefix(dest, []byte("public/")) ||
|
||||
bytes.HasPrefix(dest, []byte("widgets/"))))
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue