Table of Contents (masonjames)
EmDash CMS 向けの、見出しから自動生成される使い心地のよい目次プラグインです。
プラグイン
Table of Contents (masonjames)
EmDash CMS 向けの、見出しから自動生成される使い心地のよい目次プラグインです。
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()],
}),
],
});
詳細
- 最新バージョン: 0.1.3
- ライセンス: MIT
- 公開者: Mason James
- 必要条件: EmDash
^0.1.0 - ソースリポジトリ: https://github.com/masonjames/emdash-table-of-contents
- npm パッケージ: emdash-table-of-contents