diff --git a/docs/.vitepress/showcases.ts b/docs/.vitepress/showcases.ts index 797498dac9..0e5243dabb 100644 --- a/docs/.vitepress/showcases.ts +++ b/docs/.vitepress/showcases.ts @@ -250,6 +250,18 @@ export const showcases: ShowCaseInfo[] = [ cover: 'https://i.ytimg.com/vi/hVMaPBrWvAo/hqdefault.jpg', datetime: '2025-01-12', }, + { + title: 'Single Image Super-Resolution Based on Capsule Neural Networks', + author: { + name: 'George Corrêa de Araújo', + link: 'https://george-gca.github.io/', + }, + at: 'Brazilian Conference on Intelligent Systems 2023', + slidesLink: 'https://george-gca.github.io/bracis_2023_srcaps/', + sourceLink: 'https://github.com/george-gca/bracis_2023_srcaps', + cover: 'https://raw.githubusercontent.com/george-gca/bracis_2023_srcaps/refs/heads/main/cover.png', + datetime: '2023-09-27', + }, // Add yours here! { title: 'Yours?', diff --git a/packages/client/setup/code-runners.ts b/packages/client/setup/code-runners.ts index 519ec16ffa..063abb9721 100644 --- a/packages/client/setup/code-runners.ts +++ b/packages/client/setup/code-runners.ts @@ -131,10 +131,10 @@ function runJavaScript(code: string): CodeRunnerOutputs { // JSON.stringify omits any keys with a value of undefined. To get around this, we replace undefined with the text __undefined__ and then do a global replace using regex back to keyword undefined textRep = prefix - + JSON.stringify(arg, (_, value) => (value === undefined ? '__undefined__' : value), 2).replace( - /"__undefined__"/g, - 'undefined', - ) + + JSON.stringify(arg, (_, value) => (value === undefined ? '__undefined__' : value), 2).replace( + /"__undefined__"/g, + 'undefined', + ) textRep = String(textRep) } diff --git a/packages/slidev/node/resolver.ts b/packages/slidev/node/resolver.ts index 0ebbfa2113..d1d9a4a13f 100644 --- a/packages/slidev/node/resolver.ts +++ b/packages/slidev/node/resolver.ts @@ -231,7 +231,7 @@ export async function getRoots(entry?: string): Promise { const userRoot = dirname(entry) isInstalledGlobally.value = slash(relative(userRoot, process.argv[1])).includes('/.pnpm/') - || (await import('is-installed-globally')).default + || (await import('is-installed-globally')).default const clientRoot = await findPkgRoot('@slidev/client', cliRoot, true) const closestPkgRoot = dirname(await findClosestPkgJsonPath(userRoot) || userRoot) const userPkgJson = getUserPkgJson(closestPkgRoot) diff --git a/packages/slidev/node/syntax/markdown-it/markdown-it-katex.ts b/packages/slidev/node/syntax/markdown-it/markdown-it-katex.ts index 78f25db75a..6707846725 100644 --- a/packages/slidev/node/syntax/markdown-it/markdown-it-katex.ts +++ b/packages/slidev/node/syntax/markdown-it/markdown-it-katex.ts @@ -155,8 +155,8 @@ function math_block(state: any, start: number, end: number, silent: boolean) { const token = state.push('math_block', 'math', 0) token.block = true token.content = (firstLine && firstLine.trim() ? `${firstLine}\n` : '') - + state.getLines(start + 1, next, state.tShift[start], true) - + (lastLine && lastLine.trim() ? lastLine : '') + + state.getLines(start + 1, next, state.tShift[start], true) + + (lastLine && lastLine.trim() ? lastLine : '') token.map = [start, state.line] token.markup = '$$' return true