Skip to content

Commit

Permalink
remove no-highlight language
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 5, 2024
1 parent fce166c commit dbda6ff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export function fixFilename(description) {
if (description) {
description = description
.replaceAll(/```([^\n]+)\.(js|hbs|ts)\n/g, '```$2 {data-filename=$1.$2}\n')
.replaceAll('```hbs', '```handlebars');
.replaceAll('```hbs', '```handlebars')
.replaceAll('```no-highlight', '```');
}

return description;
Expand Down
5 changes: 5 additions & 0 deletions test/mocks/input/no-highlight.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The default is now that we don't pick a language by default so you don't need the no-highlight language

```no-highlight
shell make me a sandwich
```
5 changes: 5 additions & 0 deletions test/mocks/output/no-highlight.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The default is now that we don't pick a language by default so you don't need the no-highlight language

```
shell make me a sandwich
```

0 comments on commit dbda6ff

Please sign in to comment.