Skip to content

Commit

Permalink
fix: ignore math lang (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks authored Jan 16, 2024
1 parent 20159e2 commit ab71ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export default function rehypePrettyCode(
defaultCodeBlockLang,
);

if (!lang) return;
if (!lang || lang === 'math') return;

const lineNumbers: number[] = [];
if (meta) {
Expand Down

0 comments on commit ab71ae8

Please sign in to comment.