@abraca/cli 2.10.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1396,6 +1396,12 @@ function parseFrontmatter(markdown) {
|
|
|
1396
1396
|
if (subtitle) meta.subtitle = subtitle;
|
|
1397
1397
|
const url = getStr(["url"]);
|
|
1398
1398
|
if (url) meta.url = url;
|
|
1399
|
+
const language = getStr(["language"]);
|
|
1400
|
+
if (language) meta.language = language;
|
|
1401
|
+
const fileExtension = getStr(["fileExtension"]);
|
|
1402
|
+
if (fileExtension) meta.fileExtension = fileExtension;
|
|
1403
|
+
const codeTheme = getStr(["codeTheme"]);
|
|
1404
|
+
if (codeTheme) meta.codeTheme = codeTheme;
|
|
1399
1405
|
const ratingRaw = getStr(["rating"]);
|
|
1400
1406
|
if (ratingRaw !== void 0) {
|
|
1401
1407
|
const n = Number(ratingRaw);
|
|
@@ -2673,6 +2679,9 @@ function generateFrontmatter(label, meta, type) {
|
|
|
2673
2679
|
4: "urgent"
|
|
2674
2680
|
}[meta.priority] ?? meta.priority}`);
|
|
2675
2681
|
if (meta.checked !== void 0) lines.push(`checked: ${meta.checked}`);
|
|
2682
|
+
if (meta.language) lines.push(`language: ${yamlScalar(meta.language)}`);
|
|
2683
|
+
if (meta.fileExtension) lines.push(`fileExtension: ${yamlScalar(meta.fileExtension)}`);
|
|
2684
|
+
if (meta.codeTheme) lines.push(`codeTheme: ${yamlScalar(meta.codeTheme)}`);
|
|
2676
2685
|
if (meta.dateStart) lines.push(`dateStart: "${escapeYaml(meta.dateStart)}"`);
|
|
2677
2686
|
if (meta.dateEnd) lines.push(`dateEnd: "${escapeYaml(meta.dateEnd)}"`);
|
|
2678
2687
|
if (meta.subtitle) lines.push(`subtitle: "${escapeYaml(meta.subtitle)}"`);
|