fix: add YAML front matter support in markdown processing (#9963)

* feat: add YAML front matter support in markdown processing

- Introduced a new plugin to parse and render YAML front matter in markdown documents.
- Updated the markdown converter to handle YAML front matter, preserving its structure during conversion.
- Added corresponding tests to ensure YAML front matter is retained correctly in markdown to HTML and vice versa.
- Enhanced i18n files with new translations for front matter properties in English, Chinese (Simplified and Traditional).
- Included the 'yaml' package as a dependency in package.json.

* feat(i18n): add new translations for editing properties in Traditional Chinese

* chore: fix
This commit is contained in:
SuYao
2025-09-06 17:10:16 +08:00
committed by GitHub
parent 1640ba2e9e
commit cb4b26c8a4
10 changed files with 1045 additions and 0 deletions
+10
View File
@@ -10127,6 +10127,7 @@ __metadata:
winston-daily-rotate-file: "npm:^5.0.0"
word-extractor: "npm:^1.0.4"
y-protocols: "npm:^1.0.6"
yaml: "npm:^2.8.1"
yjs: "npm:^13.6.27"
youtubei.js: "npm:^15.0.1"
zipread: "npm:^1.3.3"
@@ -25505,6 +25506,15 @@ __metadata:
languageName: node
linkType: hard
"yaml@npm:^2.8.1":
version: 2.8.1
resolution: "yaml@npm:2.8.1"
bin:
yaml: bin.mjs
checksum: 10c0/7c587be00d9303d2ae1566e03bc5bc7fe978ba0d9bf39cc418c3139d37929dfcb93a230d9749f2cb578b6aa5d9ebebc322415e4b653cb83acd8bc0bc321707f3
languageName: node
linkType: hard
"yargs-parser@npm:^21.1.1":
version: 21.1.1
resolution: "yargs-parser@npm:21.1.1"