Updated to Astro 4

This commit is contained in:
Maxi Ferreira 2023-12-05 17:15:44 -08:00
parent 5c2ef4127a
commit a8aec707dc
4 changed files with 2730 additions and 1555 deletions

View File

@ -1,6 +1,9 @@
import { defineConfig } from 'astro/config' import { defineConfig } from 'astro/config'
import svelte from '@astrojs/svelte' import svelte from '@astrojs/svelte'
import mdx from '@astrojs/mdx' import mdx from '@astrojs/mdx'
import remarkGfm from 'remark-gfm'
import remarkSmartypants from 'remark-smartypants'
import rehypeExternalLinks from 'rehype-external-links'
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
@ -10,10 +13,10 @@ export default defineConfig({
shikiConfig: { shikiConfig: {
theme: 'nord', theme: 'nord',
}, },
remarkPlugins: ['remark-gfm', 'remark-smartypants'], remarkPlugins: [remarkGfm, remarkSmartypants],
rehypePlugins: [ rehypePlugins: [
[ [
'rehype-external-links', rehypeExternalLinks,
{ {
target: '_blank', target: '_blank',
}, },

4266
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,10 +10,12 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"@astrojs/mdx": "^1.1.0", "@astrojs/mdx": "^2.0.0",
"@astrojs/svelte": "^4.0.2", "@astrojs/svelte": "^5.0.0",
"astro": "^3.2.2", "astro": "^4.0.1",
"reading-time": "^1.5.0", "reading-time": "^1.5.0",
"rehype-external-links": "^3.0.0" "rehype-external-links": "^3.0.0",
"remark-gfm": "^4.0.0",
"remark-smartypants": "^2.0.0"
} }
} }

View File

@ -200,3 +200,5 @@ Incididunt in culpa cupidatat mollit cillum qui proident sit. In cillum aliquip
<iframe width="100%" height="400" src="https://www.youtube.com/embed/PCp2iXA1uLE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <iframe width="100%" height="400" src="https://www.youtube.com/embed/PCp2iXA1uLE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Reprehenderit non eu quis in ad elit esse qui aute id [incididunt](#) dolore cillum. Esse laboris consequat dolor anim exercitation tempor aliqua deserunt velit magna laboris. Culpa culpa minim duis amet mollit do quis amet commodo nulla irure. Reprehenderit non eu quis in ad elit esse qui aute id [incididunt](#) dolore cillum. Esse laboris consequat dolor anim exercitation tempor aliqua deserunt velit magna laboris. Culpa culpa minim duis amet mollit do quis amet commodo nulla irure.
[Hello World](/blog/hello-world)