@@ -5,7 +5,7 @@ describe("validate markdown", () => {
55 const md = `
66Description.
77
8- ## Put Level's title here
8+ ## 1. Put Level's title here
99
1010> Level's summary: a short description of the level's content in one line.
1111
@@ -19,7 +19,7 @@ Description.
1919
2020# Another Title
2121
22- ## Put Level's title here
22+ ## 1. Put Level's title here
2323
2424> Level's summary: a short description of the level's content in one line.
2525
@@ -29,7 +29,7 @@ Some text that describes the level`;
2929Description.
3030
3131
32- ## Put Level's title here
32+ ## 1. Put Level's title here
3333
3434> Level's summary: a short description of the level's content in one line.
3535
@@ -45,7 +45,7 @@ Some text that describes the level
4545 it ( "should return false if missing a summary description" , ( ) => {
4646 const md = `# A Title
4747
48- ## Put Level's title here
48+ ## 1. Put Level's title here
4949
5050> Level's summary: a short description of the level's content in one line.
5151
@@ -79,24 +79,25 @@ A description
7979
8080Some text that describes the level
8181
82- ### A Step
82+ ### Missing step id
8383
8484First step
8585` ;
86+ expect ( validateMarkdown ( md ) ) . toBe ( false ) ;
8687 } ) ;
8788
8889 it ( "should return true for valid markdown" , ( ) => {
8990 const md = `# Title
9091
9192Description.
9293
93- ## Put Level's title here
94+ ## 1. Put Level's title here
9495
9596> Level's summary: a short description of the level's content in one line.
9697
9798Some text that describes the level
9899
99- ### Step 1
100+ ### 1. 1
100101
101102First Step` ;
102103 expect ( validateMarkdown ( md ) ) . toBe ( true ) ;
@@ -114,19 +115,19 @@ Should not be a problem
114115\`\`\`
115116
116117
117- ## Put Level's title here
118+ ## 1. Put Level's title here
118119
119120> Level's summary: a short description of the level's content in one line.
120121
121122Some text that describes the level
122123
123124\`\`\`
124- ## Another Level in markdown
125+ ## 2. Another Level in markdown
125126
126127Should not be an issue
127128\`\`\`
128129
129- ### Step 1
130+ ### 1. 1
130131
131132First Step` ;
132133 expect ( validateMarkdown ( md ) ) . toBe ( true ) ;
0 commit comments