sectionize()
제목 그룹을 `<section>` 요소로 감쌉니다.
import { sectionize } from "@unifast/node";시그니처
function sectionize(): UnifastPlugin매개변수
없음.
사용법
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()],
});
// 각 제목과 뒤따르는 콘텐츠가 <section> 요소로 감싸집니다