Skip to content

Support Frontmatter Via Document Attribute #17810

@frostime

Description

@frostime

您在什么场景下需要这个功能?

参见: https://ld246.com/article/1780601528021

描述最优解决方案

TLDR:官方正式支持对 frontmatter 的兼容,允许用户编辑设置

  1. 为文档块增加一个官方保留的特殊内部属性,例如 sy__doc-frontmatter
  2. 在前端实现一个专门的 Frontmatter 编辑区。

过去相关 Issue 表明( #1016 #10878#12962 ),官方倾向不把 YAML Front Matter 作为新的独立数据模型,而是优先纳入思源既有块属性 / 导入导出体系处理。

本提案亦是尝试在块属性框架内解决问题。

描述候选解决方案

No response

其他信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions