mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-29 01:13:02 +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
|
/ 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
|
||||||
|
|
Loading…
Reference in a new issue