Change math syntax (#3280)
This commit is contained in:
parent
cb0874f15a
commit
3fc70996e2
2 changed files with 8 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue