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