|
@@ -7,10 +7,10 @@ class MarkdownTableUtil {
|
|
|
|
|
|
|
|
constructor() {
|
|
constructor() {
|
|
|
// https://github.com/markdown-it/markdown-it/blob/d29f421927e93e88daf75f22089a3e732e195bd2/lib/rules_block/table.js#L83
|
|
// https://github.com/markdown-it/markdown-it/blob/d29f421927e93e88daf75f22089a3e732e195bd2/lib/rules_block/table.js#L83
|
|
|
- // https://regex101.com/r/7BN2fR/7
|
|
|
|
|
this.tableAlignmentLineRE = /^[-:|][-:|\s]*$/;
|
|
this.tableAlignmentLineRE = /^[-:|][-:|\s]*$/;
|
|
|
this.tableAlignmentLineNegRE = /^[^-:]*$/; // it is need to check to ignore empty row which is matched above RE
|
|
this.tableAlignmentLineNegRE = /^[^-:]*$/; // it is need to check to ignore empty row which is matched above RE
|
|
|
- this.linePartOfTableRE = /^\|[^\r\n]*|[^\r\n]*\|$|([^|\r\n]+\|[^|\r\n]*)+/; // own idea
|
|
|
|
|
|
|
+ // https://regex101.com/r/7BN2fR/8
|
|
|
|
|
+ this.linePartOfTableRE = /^\|[^\r\n]*|[^\r\n]*\|$/; // own idea
|
|
|
|
|
|
|
|
this.getBot = this.getBot.bind(this);
|
|
this.getBot = this.getBot.bind(this);
|
|
|
this.getEot = this.getEot.bind(this);
|
|
this.getEot = this.getEot.bind(this);
|