mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🧑💻 API | getDocumentAssets https://github.com/siyuan-note/siyuan/issues/13875
This commit is contained in:
parent
4d92d63ba1
commit
693bf7e1ed
3 changed files with 30 additions and 0 deletions
|
@ -75,6 +75,16 @@ func DocImageAssets(rootID string) (ret []string, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
func DocAssets(rootID string) (ret []string, err error) {
|
||||
tree, err := LoadTreeByBlockID(rootID)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
ret = assetsLinkDestsInTree(tree)
|
||||
return
|
||||
}
|
||||
|
||||
func NetAssets2LocalAssets(rootID string, onlyImg bool, originalURL string) (err error) {
|
||||
tree, err := LoadTreeByBlockID(rootID)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue