Replies: 4 comments 1 reply
-
|
Hi @aq25-c! I'm Dosu and I’m helping the Trilium team. 在将思源笔记导入到 Trilium 时,出现“资源”文件夹(通常包含图片、附件等)是因为思源的导出结构会把嵌入资源单独放在一个文件夹里,方便在不同平台间迁移和引用。 目前 Trilium 没有内置选项可以在导入时自动排除“资源”文件夹。如果你不想导入这个文件夹,只能在导入前手动删除或排除它,但这样做会导致笔记中引用的图片或附件无法正常显示,出现内容缺失或链接失效的情况。 如果你只是想让笔记结构更简洁,可以在导入后手动删除“资源”文件夹,但请注意这样会影响相关资源的显示。没有官方或插件支持在导入时自动忽略该文件夹。参考 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
If you can provide a sample export from SiYuan, perhaps I could look into improving the import mechanism to support it. |
Beta Was this translation helpful? Give feedback.
-
|
思源笔记导出时会把图片、附件等资源放在单独的“资源”文件夹里,方便迁移和引用。Trilium 目前没有内置选项可以在导入时自动排除这个文件夹。如果你在导入前手动删除“资源”文件夹,相关图片或附件在笔记中会显示为缺失或链接失效。如果只是想让结构更简洁,可以在导入后手动删除“资源”文件夹,但这同样会影响资源显示。目前没有官方或插件支持自动忽略该文件夹导入。参考 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
This works similarly to Logseq. You can use trilium-py like this: res = ea.upload_md_folder(
parentNoteId="root",
mdFolder="/path/to/siyuan_markdown/",
ignoreFolder=["assets"],
)For more details, see the README (Chinese). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
我通过siyuan笔记导入到trilium的时候 中间会多一个资源的文件夹,如何导入的时候不加载这个资源文件呢?
Beta Was this translation helpful? Give feedback.
All reactions