summaryrefslogtreecommitdiff
path: root/src/mfm/parse/elements/math.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/mfm/parse/elements/math.ts')
-rw-r--r--src/mfm/parse/elements/math.ts20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mfm/parse/elements/math.ts b/src/mfm/parse/elements/math.ts
deleted file mode 100644
index f2b6c5f479..0000000000
--- a/src/mfm/parse/elements/math.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Math
- */
-
-export type TextElementMath = {
- type: 'math';
- content: string;
- formula: string;
-};
-
-export default function(text: string) {
- const match = text.match(/^\\\((.+?)\\\)/);
- if (!match) return null;
- const math = match[0];
- return {
- type: 'math',
- content: math,
- formula: match[1]
- } as TextElementMath;
-}