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 / jump
/ flip / flip
/ inlineCode / inlineCode
// / mathInline / mathInline
// / mention // / mention
// / hashtag // / hashtag
// / url // / url
@ -265,6 +265,17 @@ inlineCode
} }
// inline: mathInline
mathInline
= "\\(" content:$(!"\\)" c:CHAR { return c; })+ "\\)"
{
return createTree('mathInline', {
formula: content
});
}
// Core rules // Core rules
CHAR CHAR