-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
16 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
/** @attention 修改正则要注意小括号的位置是否对应,不然还要去修改索引 */ | ||
export const ABReg = { | ||
reg_header: /^\s*(-\s)*\[(.*)\]/, // /^\s*(>\s|-\s)*\[(.*?)\]/,需要小心会和callout语法冲突!!! | ||
reg_header: /^(\s|>\s|-\s)*\[(.*)\]/, | ||
|
||
reg_front: /^{\[.*?\]/, | ||
reg_end: /^}./, | ||
reg_list: /^\s*-\s(.*)/, //: /^\s*(>\s)*-\s(.*)$/ | ||
reg_list2: /^(\s*)-\s(.*)/, | ||
reg_code: /^\s*(```|~~~)(.*)/, //: /^\s*(>\s|-\s)*(```|~~~)(.*)$/ | ||
reg_quote: /^\s*>\s(.*)/, // `- > ` 不匹配,要认为这种是列表 | ||
reg_heading: /^(\#+)\s(.*)/, | ||
reg_list: /^((\s|>\s|-\s)*)-\s(.*)/, //: /^\s*(>\s)*-\s(.*)$/ | ||
reg_code: /^((\s|>\s|-\s)*)(```|~~~)(.*)/, //: /^\s*(>\s|-\s)*(```|~~~)(.*)$/ | ||
reg_quote: /^((\s|>\s|-\s)*)>\s(.*)/, // `- > ` 不匹配,要认为这种是列表 | ||
reg_heading: /^((\s|>\s|-\s)*)(\#+)\s(.*)/, | ||
} |
This file contains 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
This file contains 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
This file contains 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