sectionize()
Envolve grupos de headings em elementos `<section>`.
import { sectionize } from "@unifast/node";Assinatura
function sectionize(): UnifastPluginParâmetros
Nenhum.
Uso
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()],
});
// Each heading and its following content are wrapped in a <section> element