File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,11 +152,6 @@ function validateTree(tree) {
152152 case "definition" :
153153 validateUrlNode ( node ) ;
154154 break ;
155- case "text" :
156- if ( containsDangerousUrl ( node . value ) ) {
157- fail ( node , "contains a dangerous URL scheme" ) ;
158- }
159- break ;
160155 }
161156 } ) ;
162157}
Original file line number Diff line number Diff line change @@ -44,6 +44,19 @@ Read the public setup guide at https://example.com/docs.
4444` ) ;
4545 } ) ;
4646
47+ it ( "allows dangerous URL scheme names in plain prose" , async ( ) => {
48+ await expectValid ( `<Steps>
49+ <Step>
50+ In the permissions section, choose the relevant permissions:
51+
52+ To sync (read) data:
53+
54+ - Project: Read
55+ </Step>
56+ </Steps>
57+ ` ) ;
58+ } ) ;
59+
4760 it ( "rejects unknown JSX components" , async ( ) => {
4861 await expectInvalid ( "<Unknown />\n" , / d i s a l l o w e d J S X c o m p o n e n t " U n k n o w n " / ) ;
4962 } ) ;
You can’t perform that action at this time.
0 commit comments