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

implement syntax: spin

parent 6d2f7c4c
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ inline
/ italic
/ strike
/ motion
// / spin
/ spin
/ jump
/ flip
// / inlineCode
......@@ -213,6 +213,18 @@ motionB
}
// inline: spin
spin
= "<spin" attr:spin_attr? ">" content:(!"</spin>" i:inline { return i; })+ "</spin>"
{
return createTree('spin', { attr: attr }, mergeText(content));
}
spin_attr
= _ str:$(!">" CHAR)* { return str; }
// inline: jump
jump
......
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