Commit 2ee4c608 authored by chris's avatar chris
Browse files

fix regex for firefox

parent c571e26a
......@@ -17,10 +17,7 @@ class MathService extends Service {
const schema = this.container.get('Schema');
const rules = this.container.get('Rules');
const newRules = [
inlineInputRule(
/(?<!\\)\$(.+)(?<!\\)\$/,
schema.schema.nodes.math_inline,
),
inlineInputRule(/(?!\\)\$(.+)(?!\\)\$/, schema.schema.nodes.math_inline),
blockInputRule(/^\$\$\s+$/, schema.schema.nodes.math_display),
];
// rules.addRule(newRules);
......
......@@ -55,7 +55,7 @@ class Rules {
this.schema.nodes.heading,
match => ({ level: match[1].length }),
),
inlineInputRule(/(?<!\\)\$(.+)(?<!\\)\$/, this.schema.nodes.math_inline),
inlineInputRule(/(?!\\)\$(.+)(?!\\)\$/, this.schema.nodes.math_inline),
blockInputRule(/^\$\$\s+$/, this.schema.nodes.math_display),
];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment