sectionize()

heading groups को `<section>` elements में wrap करें।

import { sectionize } from "@unifast/node";

Signature

function sectionize(): UnifastPlugin

Parameters

कोई नहीं।

उपयोग

import { compile, sectionize } from "@unifast/node";

const md = `# Introduction

Some introductory text.

## Getting Started

Instructions for getting started.

## Configuration

Configuration details here.`;

const result = compile(md, {
  plugins: [sectionize()],
});
// प्रत्येक heading और उसके बाद के content को एक <section> element में wrap किया जाता है

उदाहरण

Heading sections