Skip to content

Commit aef110b

Browse files
committed
update to be generic
1 parent ff96539 commit aef110b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/plugins/expressive-code/default-titles.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ export default () => {
1111
break;
1212
}
1313
case "javascript": {
14-
context.codeBlock.props.title ??= "index.js";
14+
context.codeBlock.props.title ??= "JavaScript";
1515
break;
1616
}
1717
case "js": {
18-
context.codeBlock.props.title ??= "index.js";
18+
context.codeBlock.props.title ??= "JavaScript";
1919
break;
2020
}
2121
case "py": {
22-
context.codeBlock.props.title ??= "index.py";
22+
context.codeBlock.props.title ??= "Python";
2323
break;
2424
}
2525
case "python": {
26-
context.codeBlock.props.title ??= "index.py";
26+
context.codeBlock.props.title ??= "Python";
2727
break;
2828
}
2929
case "typescript": {
30-
context.codeBlock.props.title ??= "index.ts";
30+
context.codeBlock.props.title ??= "TypeScript";
3131
break;
3232
}
3333
case "ts": {
34-
context.codeBlock.props.title ??= "index.ts";
34+
context.codeBlock.props.title ??= "TypeScript";
3535
break;
3636
}
3737
default: {

0 commit comments

Comments
 (0)