diff --git a/package.json b/package.json index 234942a..39cd25c 100644 --- a/package.json +++ b/package.json @@ -58,8 +58,7 @@ "dayjs": "^1.11.13", "fast-glob": "^3.3.2", "i18next": "^23.15.2", - "nprogress": "^0.2.0", - "remark-github-alerts": "0.1.0-beta.3" + "nprogress": "^0.2.0" }, "devDependencies": { "@antfu/eslint-config": "^3.3.2", diff --git a/playground/src/content/pages/posts/markdown-style-guide.md b/playground/src/content/pages/posts/markdown-style-guide.md index 5447847..2f28e97 100644 --- a/playground/src/content/pages/posts/markdown-style-guide.md +++ b/playground/src/content/pages/posts/markdown-style-guide.md @@ -28,44 +28,6 @@ Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptio Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. -## Alerts - -### Syntax - -```markdown -> [!NOTE] -> Highlights information that users should take into account, even when skimming. - -> [!TIP] -> Optional information to help a user be more successful. - -> [!IMPORTANT] -> Crucial information necessary for users to succeed. - -> [!WARNING] -> Critical content demanding immediate user attention due to potential risks. - -> [!CAUTION] -> Negative potential consequences of an action. -``` - -### Output - -> [!NOTE] -> Highlights information that users should take into account, even when skimming. - -> [!TIP] -> Optional information to help a user be more successful. - -> [!IMPORTANT] -> Crucial information necessary for users to succeed. - -> [!WARNING] -> Critical content demanding immediate user attention due to potential risks. - -> [!CAUTION] -> Negative potential consequences of an action. - ## Images ### Syntax diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b593297..09df12b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,9 +35,6 @@ importers: nprogress: specifier: ^0.2.0 version: 0.2.0 - remark-github-alerts: - specifier: 0.1.0-beta.3 - version: 0.1.0-beta.3(@types/mdast@4.0.4)(unified@11.0.5) devDependencies: '@antfu/eslint-config': specifier: ^3.3.2 @@ -3034,12 +3031,6 @@ packages: remark-gfm@4.0.0: resolution: {integrity: sha512-U92vJgBPkbw4Zfu/IiW2oTZLSL3Zpv+uI7My2eq8JxKgqraFdU8YUGicEJCEgSbeaG+QDFqIcwwfMTOEelPxuA==} - remark-github-alerts@0.1.0-beta.3: - resolution: {integrity: sha512-Sc74yr9DKX+fEIey462EUTtrrbzQ11EDfMawVTxRkqMxl4OMZUhLAuPFmbFYVvZMheYpmLEKqaf2fGlcbpQs1w==} - peerDependencies: - '@types/mdast': ^4.0.0 - unified: ^11.0.0 - remark-mdx@3.0.1: resolution: {integrity: sha512-3Pz3yPQ5Rht2pM5R+0J2MrGoBSrzf+tJG94N+t/ilfdh8YLyyKYtidAYwTveB20BoHAcwIopOUqhcmh2F7hGYA==} @@ -7472,12 +7463,6 @@ snapshots: transitivePeerDependencies: - supports-color - remark-github-alerts@0.1.0-beta.3(@types/mdast@4.0.4)(unified@11.0.5): - dependencies: - '@types/mdast': 4.0.4 - unified: 11.0.5 - unist-util-visit: 5.0.0 - remark-mdx@3.0.1: dependencies: mdast-util-mdx: 3.0.0 diff --git a/src/components/Page.astro b/src/components/Page.astro index 5940ac3..f344f68 100644 --- a/src/components/Page.astro +++ b/src/components/Page.astro @@ -11,9 +11,6 @@ import WrapperDemo from './WrapperDemo.astro' import WrapperPost from './WrapperPost.astro' import '@unocss/reset/tailwind.css' -import 'remark-github-alerts/styles/github-colors-light.css' -import 'remark-github-alerts/styles/github-colors-dark-class.css' -import 'remark-github-alerts/styles/github-base.css' import '../styles/main.css' import '../styles/prose.css' import '../styles/markdown.css' diff --git a/src/index.ts b/src/index.ts index 4e6f40b..b339d32 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,7 +10,6 @@ import type { AstroIntegration } from 'astro' import type { PluginTranslations, VitesseUserConfigWithPlugins } from './utils/plugins' import mdx from '@astrojs/mdx' -import remarkGithubAlerts from 'remark-github-alerts' import { vitesseSitemap } from './integrations/sitemap' import { vitePluginVitesseUserConfig } from './integrations/virtual-user-config' import { processI18nConfig } from './utils/i18n' @@ -94,7 +93,6 @@ export default function VitesseIntegration({ ], }, markdown: { - remarkPlugins: [remarkGithubAlerts], shikiConfig: { themes: { dark: 'vitesse-dark',