Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature:推荐在导入 Markdown 文档的时候解析一定的 YAML 元数据 #11332

Closed
chlorine3545 opened this issue May 10, 2024 · 2 comments

Comments

@chlorine3545
Copy link

In what scenarios do you need this feature?

如题。

许多 Markdown 笔记软件(例如 Obsidian 和 Typora)都将元数据存储在文档顶部的 YAML 元数据区中,但是思源笔记并不能解析这样的元数据。 我理解思源不是 Markdown 笔记软件,它不需要支持 YAML ,但是如果能够解析某些通用的 YAML 元数据并将其转化为思源内部的属性和标签等,这对用户从其他软件迁移到思源无疑是很方便的。

As the title suggests.

Many Markdown note-taking software (such as Obsidian and Typora) store metadata in a YAML metadata block at the top of the document, but Siyuan cannot parse such metadata. I totally understand that Siyuan is not a Markdown note-taking software and does not need to support YAML, but if it could parse some common YAML metadata and transform it into Siyuan's internal attributes and tags, etc., it would undoubtedly be very convenient for users migrating from other software to Siyuan.

Describe the optimal solution

解析文档顶部 YAML 数据块中的一些常见的元数据,例如 Date 和 tags。其余的元数据可以添加到自定义属性,或者依据用户的选择保留或者去除。

Describe the candidate solution

No response

Other information

No response

@88250
Copy link
Member

88250 commented May 10, 2024

Duplicate of #10878

@88250 88250 marked this as a duplicate of #10878 May 10, 2024
@88250 88250 closed this as completed May 10, 2024
@88250
Copy link
Member

88250 commented Oct 29, 2024

后续改进请关注 #12962

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants