Skip to content

Instantly share code, notes, and snippets.

@jozefchmelar
Created November 18, 2019 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jozefchmelar/8c638b52517363e6093f35ab3d5eca46 to your computer and use it in GitHub Desktop.
Save jozefchmelar/8c638b52517363e6093f35ab3d5eca46 to your computer and use it in GitHub Desktop.
My Grammar
Bold.Rule = "*" + Text + "*";
Italics.Rule = "/" + Text + "/";
Underscore.Rule = "_" + Text + "_";
StyledText.Rule = Bold | Italics | Underscore;
Text.Rule = PlainText | StyledText;
H1.Rule = "#" + Text;
H2.Rule = "##" + Text;
H3.Rule = "###" + Text;
ListItem.Rule = "-" + Text;
MarkdownElement.Rule = Text | H1 | H2 | H3 | ListItem;
MarkdownContent.Rule = MakeStarRule(MarkdownContent, MarkdownElement);
Root = MarkdownContent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment