[fix] prevent translations to math formulas and code-blocks

This commit is contained in:
PrinOrange
2024-08-25 22:45:34 +08:00
parent 2b04a51fda
commit bd1b158172
3 changed files with 14 additions and 2 deletions

5
components/mdx/Span.tsx Normal file
View File

@@ -0,0 +1,5 @@
const Span = (props: JSX.IntrinsicElements["h2"]) => {
return <span translate={props.className?.includes("katex") ? "no" : undefined} {...props} />;
};
export default Span;