import { remarkTocProps } from "https://deno.land/x/aleph_plugin_mdx@v1.3.0-beta.1/remark.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],
}),
],
};