Skip to content

Commit 8169669

Browse files
committed
Update rules for code fence syntax highlighting language name conversion
1 parent 9935950 commit 8169669

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/content/docs/1_5/tutorials/cargo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In your main.rs, you can use all stable ICU4X components for the recommended set
2424
If you wish to use custom compiled data for ICU4X, no changes to Cargo.toml are required. Instead, set the `ICU4X_DATA_DIR` environment variable to the
2525
datagen output during your build:
2626

27-
```command
27+
```shell
2828
icu4x-datagen --format mod --keys all --locales ru --out baked_data
2929
ICU4X_DATA_DIR=$(pwd)/baked_data cargo build --release
3030
```

src/content/docs/1_5/tutorials/data-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ If you check in the generated data, it is recommended that you configure a job i
5454

5555
Once we have generated the data, we need to instruct `ICU4X` to use it. To do this, set the `ICU4X_DATA_DIR` during the compilation of your app:
5656

57-
```command
57+
```shell
5858
ICU4X_DATA_DIR=$(pwd)/my_data cargo run
5959
```
6060

tools/github-to-astro.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function icu4xAstroMdFrontMatter(foundTitle: string) {
5353
const ICU4X_MD_REPLACEMENTS: Array<{pattern: string | RegExp; replacement: string}> = [
5454
// fix the code fence syntax highlighting language identifers
5555
{pattern: /```console.*/g, replacement: "```shell"},
56+
{pattern: /```command.*/g, replacement: "```shell"},
5657
{pattern: /```rust.*/g, replacement: "```rust"},
5758

5859
// remove H1 titles from MD pages in Github (because Front Matter is the way to

0 commit comments

Comments
 (0)