Skip to content
Snippets Groups Projects
Commit f2654f2c authored by marihachi's avatar marihachi
Browse files

implement syntax: mathInline

parent 81026a55
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ inline
/ jump
/ flip
/ inlineCode
// / mathInline
/ mathInline
// / mention
// / hashtag
// / url
......@@ -265,6 +265,17 @@ inlineCode
}
// inline: mathInline
mathInline
= "\\(" content:$(!"\\)" c:CHAR { return c; })+ "\\)"
{
return createTree('mathInline', {
formula: content
});
}
// Core rules
CHAR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment