Skip to content

Commit 89f5cc1

Browse files
committed
Add 'sh' to supported language for code blocks
1 parent 7995a7d commit 89f5cc1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/plugins/code-block.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ module.exports = (async () => {
4545
'groovy',
4646
'dart',
4747
'text',
48-
'plain'
48+
'plain',
49+
'sh'
4950
];
5051

5152
loadLanguages(supportedLanguages);
@@ -106,7 +107,10 @@ module.exports = (async () => {
106107
code = code.replace(/ANDROID_VERSION/g, versions.ANDROID_VERSION);
107108
code = code.replace(/ANDROID_DEVPREVIEW/g, versions.ANDROID_DEVPREVIEW);
108109
code = code.replace(/ANDROID_V1_VERSION/g, versions.ANDROID_V1_VERSION);
109-
code = code.replace(/ANDROID_V1_GEO_VERSION/g, versions.ANDROID_V1_GEO_VERSION);
110+
code = code.replace(
111+
/ANDROID_V1_GEO_VERSION/g,
112+
versions.ANDROID_V1_GEO_VERSION
113+
);
110114
code = code.replace(
111115
/ANDROID_V1_KOTLIN_VERSION/g,
112116
versions.ANDROID_V1_KOTLIN_VERSION

0 commit comments

Comments
 (0)