We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44ba473 commit 2571711Copy full SHA for 2571711
src/utils/parse.ts
@@ -86,7 +86,7 @@ export function parseMdContent(md: string): TutorialFrame | never {
86
const hintDetectRegex = /^(#{4}\sHINTS[\n\r]+([\*|\-]\s(?<hintContent>[^]*))[\n\r]+)+/;
87
const hintMatch = section.match(hintDetectRegex);
88
if (!!hintMatch) {
89
- const hintItemRegex = /[\n\r]+\*\s/;
+ const hintItemRegex = /[\n\r]+[\*|\-]\s/;
90
const hints = section
91
.split(hintItemRegex)
92
.slice(1) // remove #### HINTS
tests/parse.test.ts
@@ -1000,7 +1000,7 @@ The first step
1000
expect(result.levels).toEqual(expected.levels);
1001
});
1002
1003
- xit("should parse hints for a step with '-'", () => {
+ it("should parse hints for a step with '-'", () => {
1004
const md = `# Title
1005
1006
Description.
0 commit comments