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 |
0 replies
|
If you can provide a sample export from SiYuan, perhaps I could look into improving the import mechanism to support it. |
1 reply
|
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). |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
我通过siyuan笔记导入到trilium的时候 中间会多一个资源的文件夹,如何导入的时候不加载这个资源文件呢?
All reactions