@@ -46,7 +46,7 @@ export const markdocPreprocess = (options: Options = {}): PreprocessorGroup => {
4646 for ( const key in options ) {
4747 if ( ! validOptionKeys . includes ( key as keyof Options ) ) {
4848 log . warn (
49- `Invalid option "${ key } " provided and ignored. Check the documentation for valid options.`
49+ `Invalid option "${ key } " provided and ignored. Check the documentation for valid options.` ,
5050 ) ;
5151 }
5252 }
@@ -72,7 +72,8 @@ export const markdocPreprocess = (options: Options = {}): PreprocessorGroup => {
7272 const processHeadings = options . headingIds ?? false ;
7373 // If passed `true`, use the default for slugging headings
7474 // Otherwise, use the passed function
75- const headingSlugger = typeof processHeadings === "boolean" ? slug : processHeadings ;
75+ const headingSlugger =
76+ typeof processHeadings === "boolean" ? slug : processHeadings ;
7677 const linkify = options . linkify ?? false ;
7778 const typographer = options . typographer ?? false ;
7879 const validationLevel = options . validationLevel || "error" ;
@@ -162,7 +163,7 @@ export const markdocPreprocess = (options: Options = {}): PreprocessorGroup => {
162163 partials : { ...partialsFromSchema , ...partialsFromPartials } ,
163164 // Make $frontmatter available as variable
164165 variables : { ...configFromSchema . variables , ...variables , frontmatter } ,
165- headingSlugger
166+ headingSlugger,
166167 } ;
167168
168169 // Validate Markdoc AST
@@ -184,7 +185,7 @@ export const markdocPreprocess = (options: Options = {}): PreprocessorGroup => {
184185 }
185186 return [ ] ;
186187 } ;
187- const headings = getHeadings ( )
188+ const headings = getHeadings ( ) ;
188189
189190 // Render Markdoc AST to Svelte
190191 const svelteContent = render ( transformedContent ) ;
@@ -212,7 +213,7 @@ export const markdocPreprocess = (options: Options = {}): PreprocessorGroup => {
212213 extractUsedSvelteComponents ( transformedContent ) ;
213214 const componentImportStatements = getComponentImports (
214215 usedSvelteComponentNames ,
215- componentsPath
216+ componentsPath ,
216217 ) ;
217218
218219 // Construct script tag content
0 commit comments