Created
October 11, 2019 15:41
-
-
Save zaydek-old/77900b6fb594afc0ce5ea6a91e58503b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const COMM = /^\/\/([^\n]*)(?:\n|$)/s | |
export const HEAD = /^(#{1,6}) ([^\n]*)(?:\n|$)/s | |
export const CODE = /^```([^\n]*?)(|\n|\n.*?\n)```(?:\n|$)/s | |
export const BLOC = /^((?:>(?: [^\n]*)?(?:\n|$))+)/s | |
export const UNNU = /^((?:\t*[*+\-•] [^\n]*(?:\n|$))+)/s | |
export const NUMB = /^((?:\t*\d+[.)] [^\n]*(?:\n|$))+)/s | |
export const BREA = /^(\*\*\*|---)(?:\n|$)/s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment