mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Supports converting relative path hyperlinks into document block references after importing Markdown https://github.com/siyuan-note/siyuan/issues/13817#issuecomment-3523687650
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
63a3d64e2f
commit
3d3486e93e
1 changed files with 2 additions and 2 deletions
|
|
@ -816,8 +816,8 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {
|
|||
return nil
|
||||
}
|
||||
|
||||
if !d.IsDir() && strings.Contains(filepath.ToSlash(currentPath), "/assets/") {
|
||||
// assets 文件夹下的文件算作资源文件
|
||||
if !d.IsDir() && !strings.HasSuffix(currentPath, ".md") && !strings.HasSuffix(currentPath, ".markdown") {
|
||||
// 非 Markdown 文件作为资源文件处理 https://github.com/siyuan-note/siyuan/issues/13817
|
||||
existName := assetsDone[currentPath]
|
||||
var name string
|
||||
if "" == existName {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue