标题和文本

精美的标题,段落,文本格式和链接,以实现最佳可读性。

标题

使用标题来组织你的内容,使其更容易阅读。

当标题有一个id时,标题可以被包装在一个锚链接中,H2和H3(在大屏幕上)的hover上会显示一个哈希图标,这样读者就可以直接链接到一个部分。

当使用@nuxt/content时,H2到H4的锚链接默认为启用,否则为禁用,包括Comark。使用anchor道具的Theme组件可以在应用的某个部分切换它们:

<template>
  <UTheme :props="{ prose: { h2: { anchor: true }, h3: { anchor: true }, h4: { anchor: true } } }">
    <!-- your rendered markdown -->
  </UTheme>
</template>
使用@nuxt/content时,H2、H3和H4默认开启锚链接。您可以控制它们的generation(例如,在AI聊天界面中禁用它们),也可以控制您的nuxt.config.ts中的toc generation:
nuxt.config.ts
export default defineNuxtConfig({
  content: {
    renderer: {
      anchorLinks: false
    },
    build: {
      markdown: {
        toc: {
          depth: 3
        }
      }
    }
  }
})

标题1

Nuxt UI

# Nuxt UI

标题2

## What's new in v4?

标题3

### Enhanced components

标题4

#### Getting started

文本格式

用清晰的段落和一致的文本格式来组织内容,以提高可读性。

段落

Nuxt UI提供了一个全面的Vue组件,可组合和实用程序的集合,用于构建具有一致设计和增强用户体验的现代,可访问的应用程序。

Nuxt UI provides a comprehensive collection of Vue components, composables and utilities for building modern, accessible applications with consistent design and enhanced user experience.

Strong

强文本

**Strong text**

重点

  • 强调文本 *
*Emphasized text*

链接

要创建链接,请将链接文本括在括号中,然后将URL括在括号中。适用于外部链接和内部链接。

[Nuxt documentation](https://nuxt.com)

Blockquotes

使用blockquotes来突出重要的信息或引用。

Nuxt UI会自动适应您的主题设置,确保整个应用程序的排版一致。

> Nuxt UI automatically adapts to your theme settings, ensuring consistent typography across your entire application.

水平规则

使用水平线在视觉上分隔内容部分。


---