File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export function parseMdContent(md: string): TutorialFrame | never {
86
86
const hintDetectRegex = / ^ ( # { 4 } \s H I N T S [ \n \r ] + ( [ \* | \- ] \s (?< hintContent > [ ^ ] * ) ) [ \n \r ] + ) + / ;
87
87
const hintMatch = section . match ( hintDetectRegex ) ;
88
88
if ( ! ! hintMatch ) {
89
- const hintItemRegex = / [ \n \r ] + \* \s / ;
89
+ const hintItemRegex = / [ \n \r ] + [ \* | \- ] \s / ;
90
90
const hints = section
91
91
. split ( hintItemRegex )
92
92
. slice ( 1 ) // remove #### HINTS
Original file line number Diff line number Diff line change @@ -1000,7 +1000,7 @@ The first step
1000
1000
expect ( result . levels ) . toEqual ( expected . levels ) ;
1001
1001
} ) ;
1002
1002
1003
- xit ( "should parse hints for a step with '-'" , ( ) => {
1003
+ it ( "should parse hints for a step with '-'" , ( ) => {
1004
1004
const md = `# Title
1005
1005
1006
1006
Description.
You can’t perform that action at this time.
0 commit comments