1.2.5 • Published 4 months ago

remark-ast v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Remark AST

Remark plugin used to reconstruct the AST structure based on plugin configuration to support element nesting.

Support Framework

  • Docusaurus
  • Astro

Install

npm install -D remark-ast

Import

Import plugin

docusaurus.config.js

import { ast } from 'remark-ast';
...
remarkPlugins: [
  [
    ast,
    {
      type: "containerDirective",
      name: "steps",
      className: "steps",
      children: [
        {
          type: "heading.3",
          name: "step",
          className: "step",
          condition: "partition",
        },
      ],
    },
  ],
],

Remark AST Plugin List

Remark AST Plugin Snapshot

Steps Plugin

preview

1.2.5

4 months ago

1.2.4

4 months ago

1.2.3

4 months ago

1.2.2

4 months ago

1.2.1

4 months ago

1.2.0

4 months ago

1.1.0

4 months ago

1.0.0

4 months ago