Table of Contents (masonjames)

適用於 EmDash CMS 的標題驅動目錄外掛,體驗出色。

外掛

Table of Contents (masonjames)

適用於 EmDash CMS 的標題驅動目錄外掛,體驗出色。

  • 分類: 編輯器體驗
  • 狀態: 可用
  • 版本: 0.1.3
  • 價格: 未知
  • 來源: npm 套件
  • 安裝方式: npm 原生整合
  • 核實日期: 2026-11-01

適用於 EmDash CMS 的標題驅動目錄外掛,體驗出色。

安裝

從 npm 安裝此套件:

npm install emdash-table-of-contents

在 Astro 設定中註冊此外掛:

import { defineConfig } from "astro/config";
import { emdash } from "emdash/astro";
import { tableOfContentsPlugin } from "emdash-table-of-contents";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [tableOfContentsPlugin()],
    }),
  ],
});

詳細資訊