From e6aa2f2f27de2e1f2403e2463e2b473c55218a85 Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Sun, 5 Nov 2023 22:23:56 +0530 Subject: [PATCH] format --- .vitepress/markdown.ts | 4 ++-- .vitepress/theme/components/ThemeSwitch.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vitepress/markdown.ts b/.vitepress/markdown.ts index 11c9f4181..f5c35be39 100644 --- a/.vitepress/markdown.ts +++ b/.vitepress/markdown.ts @@ -6,11 +6,11 @@ export function copyableCodePlugin(md: MarkdownRenderer) { // Save the original rule for backticks const defaultRender = md.renderer.rules.code_inline || - function(tokens, idx, options, env, self) { + function (tokens, idx, options, env, self) { return self.renderToken(tokens, idx, options); }; - md.renderer.rules.code_inline = function(tokens, idx, options, env, self) { + md.renderer.rules.code_inline = function (tokens, idx, options, env, self) { // @ts-expect-error shut the fuck up already I HATE THIS if (!env.frontmatter.title || (env.frontmatter.title && !env.frontmatter.title === "base64")) { return defaultRender(tokens, idx, options, env, self); diff --git a/.vitepress/theme/components/ThemeSwitch.vue b/.vitepress/theme/components/ThemeSwitch.vue index 8fe0d3434..9168b195e 100644 --- a/.vitepress/theme/components/ThemeSwitch.vue +++ b/.vitepress/theme/components/ThemeSwitch.vue @@ -1,5 +1,5 @@