@abraca/cli 2.11.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.
@@ -1427,6 +1427,12 @@ function parseFrontmatter(markdown) {
1427
1427
  if (subtitle) meta.subtitle = subtitle;
1428
1428
  const url = getStr(["url"]);
1429
1429
  if (url) meta.url = url;
1430
+ const language = getStr(["language"]);
1431
+ if (language) meta.language = language;
1432
+ const fileExtension = getStr(["fileExtension"]);
1433
+ if (fileExtension) meta.fileExtension = fileExtension;
1434
+ const codeTheme = getStr(["codeTheme"]);
1435
+ if (codeTheme) meta.codeTheme = codeTheme;
1430
1436
  const ratingRaw = getStr(["rating"]);
1431
1437
  if (ratingRaw !== void 0) {
1432
1438
  const n = Number(ratingRaw);
@@ -2704,6 +2710,9 @@ function generateFrontmatter(label, meta, type) {
2704
2710
  4: "urgent"
2705
2711
  }[meta.priority] ?? meta.priority}`);
2706
2712
  if (meta.checked !== void 0) lines.push(`checked: ${meta.checked}`);
2713
+ if (meta.language) lines.push(`language: ${yamlScalar(meta.language)}`);
2714
+ if (meta.fileExtension) lines.push(`fileExtension: ${yamlScalar(meta.fileExtension)}`);
2715
+ if (meta.codeTheme) lines.push(`codeTheme: ${yamlScalar(meta.codeTheme)}`);
2707
2716
  if (meta.dateStart) lines.push(`dateStart: "${escapeYaml(meta.dateStart)}"`);
2708
2717
  if (meta.dateEnd) lines.push(`dateEnd: "${escapeYaml(meta.dateEnd)}"`);
2709
2718
  if (meta.subtitle) lines.push(`subtitle: "${escapeYaml(meta.subtitle)}"`);