Skip to content

Commit 80b8b92

Browse files
authored
this totally won't break any other results (#9004)
1 parent d963394 commit 80b8b92

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

sites/kit.svelte.dev/src/lib/search/content.server.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import fs from 'fs';
2-
import path from 'path';
1+
import fs from 'node:fs';
2+
import path from 'node:path';
33
import 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';
64
import { slugify } from '../docs/server';
5+
import { extract_frontmatter, transform } from '../docs/server/markdown.js';
6+
import { replace_placeholders } from '../docs/server/render.js';
77

88
const 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,

0 commit comments

Comments
 (0)