Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update showcases.ts #2021

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/.vitepress/showcases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?',
Expand Down
8 changes: 4 additions & 4 deletions packages/client/setup/code-runners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/slidev/node/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export async function getRoots(entry?: string): Promise<RootsInfo> {
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)
Expand Down
4 changes: 2 additions & 2 deletions packages/slidev/node/syntax/markdown-it/markdown-it-katex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading