Skip to content

Commit dba1694

Browse files
authored
fix(code-group): add TOML language preset to fix missing icon (#235)
1 parent 7710082 commit dba1694

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/components/src/utils/shiki/snippet-presets.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type SnippetPreset = {
1010
/** Shiki language for syntax highlighting */
1111
shikiLanguage: string;
1212
/** httpsnippet config for code generation */
13-
httpSnippet: {
13+
httpSnippet?: {
1414
target: string;
1515
client?: string;
1616
};
@@ -145,6 +145,11 @@ const SNIPPET_PRESETS: SnippetPreset[] = [
145145
shikiLanguage: "dart",
146146
httpSnippet: { target: "dart" },
147147
},
148+
{
149+
key: "toml",
150+
displayName: "TOML",
151+
shikiLanguage: "yaml",
152+
},
148153
];
149154

150155
const presetLookup = new Map<string, SnippetPreset>();

0 commit comments

Comments
 (0)