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 aa77cf4 commit 539f9eaCopy full SHA for 539f9ea
apps/svelte.dev/src/routes/tutorial/[slug]/content.server.ts
@@ -149,7 +149,7 @@ export async function load_exercise(slug: string): Promise<Exercise> {
149
next,
150
markdown: exercise.body,
151
html: await transform(exercise.body, {
152
- codespan: (text) =>
+ codespan: ({ text }) =>
153
filenames.size > 1 && filenames.has(text)
154
? `<code data-file="${scope.prefix + text}">${text}</code>`
155
: `<code>${text}</code>`
0 commit comments