Skip to content

Commit e8674d9

Browse files
committed
Make the space after > on summary optional
1 parent a30750d commit e8674d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function parseContent(md) {
3939

4040
// Identify each part of the content
4141
parts.forEach(section => {
42-
const levelRegex = /^(##\s(?<levelId>L\d+)\s(?<levelTitle>.*)[\n\r]*(>\s+(?<levelSummary>.*))?[\n\r]+(?<levelContent>[^]*))/;
42+
const levelRegex = /^(##\s(?<levelId>L\d+)\s(?<levelTitle>.*)[\n\r]*(>\s*(?<levelSummary>.*))?[\n\r]+(?<levelContent>[^]*))/;
4343
const stepRegex = /^(###\s(?<stepId>(?<levelId>L\d+)S\d+)\s(?<stepTitle>.*)[\n\r]+(?<stepContent>[^]*))/;
4444

4545
const levelMatch = section.match(levelRegex);

0 commit comments

Comments
 (0)