sectionize()
Başlık gruplarını `<section>` elemanlarıyla sarmalar.
import { sectionize } from "@unifast/node";İmza
function sectionize(): UnifastPluginParametreler
Yok.
Kullanım
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()],
});
// Her başlık ve onu takip eden içerik bir <section> elemanıyla sarmalanır