Skip to content

Commit

Permalink
fix: Katex feature detection (#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamuiiiii committed Mar 30, 2024
1 parent fc9dd0e commit a0585db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/parser/src/core.ts
Expand Up @@ -69,7 +69,7 @@ function matter(code: string) {

export function detectFeatures(code: string): SlidevFeatureFlags {
return {
katex: !!code.match(/\$.*?\$/) || !!code.match(/$\$\$/),
katex: !!code.match(/\$.*?\$/) || !!code.match(/\$\$/),
monaco: !!code.match(/{monaco.*}/),
tweet: !!code.match(/<Tweet\b/),
mermaid: !!code.match(/^```mermaid/m),
Expand Down

0 comments on commit a0585db

Please sign in to comment.