mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-25 15:35:13 +00:00
implement syntax: mathInline
This commit is contained in:
parent
81026a550e
commit
f2654f2cb5
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue