summaryrefslogtreecommitdiff
path: root/packages/astro-prism
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro-prism')
-rw-r--r--packages/astro-prism/README.md2
-rw-r--r--packages/astro-prism/src/plugin.ts8
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/astro-prism/README.md b/packages/astro-prism/README.md
index f5627d062..b2dff218c 100644
--- a/packages/astro-prism/README.md
+++ b/packages/astro-prism/README.md
@@ -29,6 +29,6 @@ runHighlighterWithAstro(
<div>{helloAstro}</div>
`,
- 'astro'
+ 'astro',
);
```
diff --git a/packages/astro-prism/src/plugin.ts b/packages/astro-prism/src/plugin.ts
index a50b9d7ef..057433f40 100644
--- a/packages/astro-prism/src/plugin.ts
+++ b/packages/astro-prism/src/plugin.ts
@@ -10,7 +10,7 @@ export function addAstro(Prism: typeof import('prismjs')) {
scriptLang = 'javascript';
// eslint-disable-next-line no-console
console.warn(
- 'Prism TypeScript language not loaded, Astro scripts will be treated as JavaScript.'
+ 'Prism TypeScript language not loaded, Astro scripts will be treated as JavaScript.',
);
}
@@ -41,7 +41,7 @@ export function addAstro(Prism: typeof import('prismjs')) {
(Prism.languages.astro as any).tag.pattern = re(
/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/
- .source
+ .source,
);
(Prism.languages.astro as any).tag.inside['tag'].pattern = /^<\/?[^\s>/]*/;
@@ -60,7 +60,7 @@ export function addAstro(Prism: typeof import('prismjs')) {
inside: Prism.languages.astro,
},
},
- (Prism.languages.astro as any).tag
+ (Prism.languages.astro as any).tag,
);
Prism.languages.insertBefore(
@@ -80,7 +80,7 @@ export function addAstro(Prism: typeof import('prismjs')) {
alias: `language-${scriptLang}`,
},
},
- (Prism.languages.astro as any).tag
+ (Prism.languages.astro as any).tag,
);
// The following will handle plain text inside tags