Chilfish's avatar

Chilfish

这是一个测试 MDX 以及样式的 demo 文章😇😇

Chilfish
123个字
blog

Hello World

Hello World from the title

Hello World from the body

  • Hello World from the list
  • Hello World from the list

Code Block

pages/rss.xml.js
import rss from '@astrojs/rss'
import sanitizeHtml from 'sanitize-html'
import MarkdownIt from 'markdown-it'
import { getPosts } from '~/utils'
const parser = new MarkdownIt()
export async function GET(context) {
const blogs = await getPosts()
return rss({
title: 'Chilfish’s Blog',
description: 'Chilfish’s Blog',
site: context.site,
items: blogs.map(({ data: blog, slug, body }) => ({
title: blog.title,
content: sanitizeHtml(parser.render(body)),
description: blog.description,
pubDate: blog.date,
author: blog.author,
link: `/blog/${slug}`,
})),
customData: `<language>zh-cn</language>`,
stylesheet: '/pretty-feed-v3.xsl',
})
}

Components

Alert:

Tip

hello

[!TIP] TIP

链接:astro

Hello

blockquote

#30363d

Table

123
123
123

标题的字数应该不宜过长对吧,要言简意赅

三级标题

四级标题

五级标题