Skip to content

Commit

Permalink
refactor(MarkdownUtil): enhance table pattern regex to allow variable…
Browse files Browse the repository at this point in the history
… column lengths
  • Loading branch information
olafsulich committed Jan 13, 2025
1 parent 16eb797 commit 5a032a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/util/MarkdownUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const CODE_BLOCK_PATTERN = /```[\s\S]*?```/;
const INLINE_CODE_PATTERN = /`[^`]+`/;
const HORIZONTAL_RULE_PATTERN = /^(?:[-*_]){3,}\s*$/m;
const TABLE_PATTERN_1 = /^\|[^|]+\|.*$/gm;
const TABLE_PATTERN_2 = /^\|[-:|]+(?:\|[-:|]+)*\|$/gm;
const TABLE_PATTERN_2 = /^\|[-:|]+(?:\|[-:|]{1,10})*\|$/gm;
const STRIKETHROUGH_PATTERN = /~~[^~]+~~/;

const UNORDERED_LIST_DETECT_PATTERN = /^[-*+]\s.*/m;
Expand Down

0 comments on commit 5a032a6

Please sign in to comment.