Structurize

Extract information from your documents

Usage

Add it as a remark plugin.

import { remarkStructure } from 'next-docs-zeta/mdx-plugins';
 
export default {
  remarkPlugins: [remarkStructure],
};

Extracted information could be found in vfile.data.structuredData, you may write your own plugin to convert it into a MDX export.

Options

Option
typesScanned mdast element types

Output

A list of headings and contents. Paragraphs will be extracted to the contents array, each item contains a heading prop indicating the heading of paragraph.

Note
A heading can have multiple paragraphs.

Heading

Prop
idunique identifer or slug of heading
contentText content

Content

Prop
headingHeading of paragraph (nullable)
contentText content

Last updated on