Skip to content
Snippets Groups Projects
Unverified Commit 8f2f449f authored by Marihachi's avatar Marihachi Committed by GitHub
Browse files

add title, blockCode

parent 34c81f8e
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,40 @@ lineBreak
spacing
= space / lineBreak
// title
titleA_char
= !(lineBreak / "】") c:. { return c; }
titleA_content
= t:$(titleA_char+) { return t; }
titleA
= "【" titleA_content "】"
titleB_char
= !(lineBreak / "]") c:. { return c; }
titleB_content
= t:$(titleB_char+) { return t; }
titleB
= "[" titleB_content "]"
title
= titleA / titleB
// blockCode
blockCode_char
= !(lineBreak / "```") c:. { return c; }
blockCode_line
= t:$(blockCode_char*) lineBreak { return t; }
blockCode
= "```" lineBreak blockCode_line* "```"
// parts
plain
......
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