File tree Expand file tree Collapse file tree
docs/src/routes/reference Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22title : Preview Directive
33badges :
44 - icon : npm
5- label : since v0.5.1
5+ label : since v0.6.0
66 - icon : source
77 label : Source
88 url : https://github.com/kobaltedev/solidbase/blob/main/src/config/remark-plugins/preview.ts
Original file line number Diff line number Diff line change 11{
22 "name" : " @kobalte/solidbase" ,
3- "version" : " 0.5 .1-dev" ,
3+ "version" : " 0.6 .1-dev" ,
44 "description" : " Fully featured, fully customisable static site generation for SolidStart" ,
55 "type" : " module" ,
66 "sideEffects" : true ,
Original file line number Diff line number Diff line change @@ -124,13 +124,11 @@ function getMatterData(filePath: string): { title?: string } & {} {
124124}
125125
126126function formatTitle ( filePath : string ) : string {
127- return removeParenthesesGroups (
128- stripExtension ( filePath )
129- . substring ( 1 )
130- . split ( "-" )
131- . map ( ( s ) => s . charAt ( 0 ) . toUpperCase ( ) + s . slice ( 1 ) )
132- . join ( " " ) ,
133- ) ;
127+ return removeParenthesesGroups ( stripExtension ( filePath ) )
128+ . substring ( 1 )
129+ . split ( "-" )
130+ . map ( ( s ) => s . charAt ( 0 ) . toUpperCase ( ) + s . slice ( 1 ) )
131+ . join ( " " ) ;
134132}
135133
136134function removeParenthesesGroups ( s : string ) {
You can’t perform that action at this time.
0 commit comments