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

implement syntax: mathBlock

parent 753cb6de
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ block
/ quote
/ search
/ blockCode
// / mathBlock
/ mathBlock
/ center
inline
......@@ -114,6 +114,17 @@ blockCode_line
= !("```" ENDLINE) line:$(CHAR+) NEWLINE { return line; }
// block: mathBlock
mathBlock
= BEGINLINE "\\[" content:$(!"\\]" c:. { return c; })+ "\\]" ENDLINE
{
return createTree('mathBlock', {
formula: content.trim()
});
}
// block: center
center
......
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