File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ export function validateMarkdown ( md : string ) : boolean {
2
+ // validate title (#)
3
+ // validate description
4
+ // validate level
5
+ // validate steps
6
+ // validate codeblock formats
7
+
8
+ return false ;
9
+ }
Original file line number Diff line number Diff line change
1
+ import * as T from "../typings/tutorial" ;
2
+ import { validateMarkdown } from "../src/utils/validateMarkdown" ;
3
+
4
+ describe ( "validate markdown" , ( ) => {
5
+ it . todo ( "should return false if missing a summary title (#)" ) ;
6
+ it . todo ( "should return false if contains multiple `#` headers" ) ;
7
+ it . todo ( "should return false if missing a summary description" ) ;
8
+ it . todo ( "should return false if `##` doesn't preface a level" ) ;
9
+ it . todo ( "should return false if `###` doesn't preface a step" ) ;
10
+ it . todo ( "should return true for valid markdown" ) ;
11
+ } ) ;
You can’t perform that action at this time.
0 commit comments