We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29989ed commit 35eafa9Copy full SHA for 35eafa9
sites/kit.svelte.dev/src/routes/content.json/content.server.js
@@ -88,7 +88,11 @@ function plaintext(markdown) {
88
const inline = (text) => text;
89
90
return transform(markdown, {
91
- code: (source) => source.split('// ---cut---\n').pop(),
+ code: (source) =>
92
+ source
93
+ .split('// ---cut---\n')
94
+ .pop()
95
+ .replace(/^\/\/((\/ file:)|( @errors:))[\s\S]*/gm, ''),
96
blockquote: block,
97
html: () => '\n',
98
heading: (text) => `${text}\n`,
0 commit comments