implement syntax: mathInline

This commit is contained in:
marihachi 2020-02-24 23:18:19 +09:00
parent 81026a550e
commit f2654f2cb5

View file

@ -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