Change math syntax (#3280)
This commit is contained in:
@ -9,7 +9,7 @@ export type TextElementMath = {
|
||||
};
|
||||
|
||||
export default function(text: string) {
|
||||
const match = text.match(/^\$(.+?)\$/);
|
||||
const match = text.match(/^\\\((.+?)\\\)/);
|
||||
if (!match) return null;
|
||||
const math = match[0];
|
||||
return {
|
||||
|
Reference in New Issue
Block a user