EasyChris / obsidian-to-notion

Share obsidian markdown file to notion and generate notion share link 同步obsdian文件到notion,并生成notion分享链接,可以方便的分享obsidian的文件。
GNU General Public License v3.0
464 stars 37 forks source link

存在markdown的超链接时同步会失败 #22

Closed zhanyonghua closed 2 years ago

zhanyonghua commented 2 years ago

md文件中存在下面这种[]()的超链接写法,同步会失败。删除File和Local Library两项后才能同步。 经测试发现,超链接的协议只能为http,如下的file或是zotero作为协议就会失败。

-**Url**: {{url}}
- **Uri**: http://zotero.org/users/7483857/items/JTDDIK32
- **Eprint**: {{eprint}}
- **File**: [2021-TDSC-Sanitizable Access Control System for Secure Cloud Storage Against Malicious Data Publishers.pdf](file:////Users/zhanyonghua/Zotero/storage/PZ8LW7N8/2021-TDSC-Sanitizable%20Access%20Control%20System%20for%20Secure%20Cloud%20Storage%20Against%20Malicious%20Data%20Publishers.pdf); [Snapshot](file:////Users/zhanyonghua/Zotero/storage/E448D9KE/9351678.html)
- **Local Library**: [Zotero](zotero://select/library/items/JTDDIK32)
EasyChris commented 2 years ago

是notion那边不支持这种形式的转义,中间可能需要加一层转换。

EasyChris commented 2 years ago

跟 #23 一样的问题,合并到23

如果你有兴趣也可以提交PR,我们一起来处理。