Skip to content

Commit dbda6ff

Browse files
committed
remove no-highlight language
1 parent fce166c commit dbda6ff

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

lib/markup.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export function fixFilename(description) {
3737
if (description) {
3838
description = description
3939
.replaceAll(/```([^\n]+)\.(js|hbs|ts)\n/g, '```$2 {data-filename=$1.$2}\n')
40-
.replaceAll('```hbs', '```handlebars');
40+
.replaceAll('```hbs', '```handlebars')
41+
.replaceAll('```no-highlight', '```');
4142
}
4243

4344
return description;

test/mocks/input/no-highlight.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The default is now that we don't pick a language by default so you don't need the no-highlight language
2+
3+
```no-highlight
4+
shell make me a sandwich
5+
```

test/mocks/output/no-highlight.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The default is now that we don't pick a language by default so you don't need the no-highlight language
2+
3+
```
4+
shell make me a sandwich
5+
```

0 commit comments

Comments
 (0)