File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
sites/kit.svelte.dev/src/lib/search Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1- import fs from 'fs' ;
2- import path from 'path' ;
1+ import fs from 'node: fs' ;
2+ import path from 'node: path' ;
33import glob from 'tiny-glob/sync.js' ;
4- import { extract_frontmatter , transform } from '../docs/server/markdown.js' ;
5- import { render , replace_placeholders } from '../docs/server/render.js' ;
64import { slugify } from '../docs/server' ;
5+ import { extract_frontmatter , transform } from '../docs/server/markdown.js' ;
6+ import { replace_placeholders } from '../docs/server/render.js' ;
77
88const categories = [
99 {
@@ -90,9 +90,8 @@ function plaintext(markdown) {
9090 return transform ( markdown , {
9191 code : ( source ) => source . split ( '// ---cut---\n' ) . pop ( ) ,
9292 blockquote : block ,
93- html : ( html ) => {
94- return html ;
95- } ,
93+ html : ( ) => '\n' ,
94+ heading : ( text ) => `${ text } \n` ,
9695 hr : ( ) => '' ,
9796 list : block ,
9897 listitem : block ,
You can’t perform that action at this time.
0 commit comments