Skip to main content
Module

x/aleph_plugin_mdx/mod.ts>remarkTocProps

The MDX 2 Plugin for Aleph.js
Latest
variable remarkTocProps
import { remarkTocProps } from "https://deno.land/x/aleph_plugin_mdx@v1.3.0-beta.1/mod.ts";

A remark plugin to expose table of contents to ssrProps.

// aleph.config.ts
import {
  mdx,
  remarkTocProps,
} from "https://deno.land/x/aleph_plugin_mdx@$VERSION/mod.ts";
import type { Config } from "https://deno.land/x/aleph@v0.3.0-beta.19/types.d.ts";
export default <Config> {
  plugins: [
    mdx({
      remarkPlugins: [remarkTocProps],
    }),
  ],
};