diff --git a/src/plugins/katex/index.tsx b/src/plugins/katex/index.tsx index 47530791..553f482b 100644 --- a/src/plugins/katex/index.tsx +++ b/src/plugins/katex/index.tsx @@ -24,7 +24,7 @@ export default definePlugin({ find: "codeBlock:{react(", replacement: { match: /codeBlock:\{react\((\i),(\i),(\i)\)\{/, - replace: "$&if($1.lang == 'latex') return $self.createBlock($1,$2,$3);" + replace: "$&if($1.lang == 'latex' || $1.lang == 'tex') return $self.createBlock($1,$2,$3);" } }, {