Remark plugin used to reconstruct the AST structure based on plugin configuration to support element nesting.
npm install remark-astRemark plugin used to reconstruct the AST structure based on plugin configuration to support element nesting.
- Docusaurus
- Astro
``bash`
npm install -D remark-ast
> docusaurus.config.js
`js
import { ast } from 'remark-ast';
...
remarkPlugins: [
[
ast,
{
type: "containerDirective",
name: "steps",
className: "steps",
children: [
{
type: "heading.3",
name: "step",
className: "step",
condition: "partition",
},
],
},
],
],
``