You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

能否在VitePress的Vue组件中使用Markdown格式内容?

Markdown格式用法示例

1. 标题

一级标题

二级标题

三级标题

四级标题

2. 列表项

  • 基础列表项1
  • 基础列表项2
    • 嵌套列表项1
    • 嵌套列表项2
  • 基础列表项3

3. 文本强调

这是斜体强调的内容,这是加粗强调的内容(单星号实现斜体,双星号实现加粗)

4. 代码与命令

单行代码或命令:git commit -m "feat: add new feature"

多行代码块:

<script setup>
import { ref } from 'vue'
const count = ref(0)
</script>

<template>
  <button @click="count++">Count: {{ count }}</button>
</template>

5. 引用文本

引用内容通常用于展示外部观点、说明性内容,或者需要突出的提示信息。

6. 链接

内部文档首页
组件说明文档

7. 图片

首页banner图

内容的提问来源于stack exchange,提问作者Alex Gusev

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.26 04:27:06