Skip to content

Commit c19ae1c

Browse files
committed
Remark build: Style JSONC code titles as JSON
1 parent 9a12223 commit c19ae1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/remark-code-titles.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ const remarkNumberHeadings = () => (tree) => {
2525
} else if (language.toLowerCase() === "json") {
2626
title = "JSON";
2727
titleClasses.push("code-title-json");
28+
} else if (language.toLowerCase() === "jsonc") {
29+
title = "JSON";
30+
titleClasses.push("code-title-json");
2831
} else {
2932
titleClasses.push("code-title-unknown");
3033
}

0 commit comments

Comments
 (0)