安装指南安装并启用 smartLinks() 集成
断链检查构建期报告、CLI 与 failOnBroken
基本演示查看内部、外部与断链的默认样式
高级功能wrapperTemplate 与自定义转换
Tailwind 样式用 Tailwind 工具类美化链接
DaisyUI 组件徽章、按钮、卡片式链接
npm install astro-smart-linksimport { defineConfig } from 'astro/config';import { smartLinks } from 'astro-smart-links';
export default defineConfig({ integrations: [smartLinks()],});