diff --git a/.changeset/red-places-argue.md b/.changeset/red-places-argue.md
new file mode 100644
index 00000000..f2b0996d
--- /dev/null
+++ b/.changeset/red-places-argue.md
@@ -0,0 +1,5 @@
+---
+'@ryanatkn/fuz_code': minor
+---
+
+rename `Syntax_Grammar_Raw` from `Syntax_Grammar` and `Syntax_Grammar` from `Normalized_Syntax_Grammar`
diff --git a/README.md b/README.md
index a3ad9864..d45a620e 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
[
](https://code.fuz.dev/)
-> syntax styling utilities and components for TypeScript, Svelte, SvelteKit 🎨
+> syntax styling utilities and components for TypeScript, Svelte, and Markdown 🎨
**[code.fuz.dev](https://code.fuz.dev/)**
diff --git a/benchmark/compare/compare.ts b/benchmark/compare/compare.ts
index bc6cbf43..76f7dfe2 100644
--- a/benchmark/compare/compare.ts
+++ b/benchmark/compare/compare.ts
@@ -150,7 +150,7 @@ export const run_comparison_benchmark = async (
});
// Prism tokenize benchmark
- if ((Prism.languages as any)[prism_lang]) {
+ if (Prism.languages[prism_lang]) {
bench.add(`prism_tokenize_${lang}_${size_label}`, () => {
Prism.tokenize(content, Prism.languages[prism_lang]);
});
@@ -163,7 +163,7 @@ export const run_comparison_benchmark = async (
});
// Prism stylize benchmark
- if ((Prism.languages as any)[prism_lang]) {
+ if (Prism.languages[prism_lang]) {
bench.add(`prism_stylize_${lang}_${size_label}`, () => {
Prism.highlight(content, Prism.languages[prism_lang], prism_lang);
});
diff --git a/package.json b/package.json
index 61b9c9f2..808231a7 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "@ryanatkn/fuz_code",
"version": "0.28.0",
- "description": "syntax styling utilities and components for TypeScript, Svelte, SvelteKit",
+ "description": "syntax styling utilities and components for TypeScript, Svelte, and Markdown",
"glyph": "🎨",
"logo": "logo.svg",
"logo_alt": "a friendly pink spider facing you",
diff --git a/src/fixtures/helpers.ts b/src/fixtures/helpers.ts
index 88fe263e..bf7c0395 100644
--- a/src/fixtures/helpers.ts
+++ b/src/fixtures/helpers.ts
@@ -33,7 +33,8 @@ export const discover_samples = (): Array => {
const match = /sample_([^.]+)\.(.+)$/.exec(filename);
if (!match) continue;
- const [, variant, lang] = match;
+ const variant = match[1]!;
+ const lang = match[2]!;
const content = readFileSync(file.id, 'utf-8');
samples.push({
diff --git a/src/lib/Code.svelte b/src/lib/Code.svelte
index 6150f49f..3e390e4a 100644
--- a/src/lib/Code.svelte
+++ b/src/lib/Code.svelte
@@ -1,5 +1,6 @@
-
-
-
+
+
-
+