gfm()
एक GFM plugin बनाएँ जो GitHub Flavored Markdown extensions को enable करता है।
import { gfm } from "@unifast/node";Signature
function gfm(options?: GfmPluginOptions): UnifastPluginParameters
options?
अलग-अलग GFM features के लिए Configuration
| Property | Type | Default | विवरण |
|---|---|---|---|
tables | boolean | true | | syntax के साथ pipe tables enable करें |
taskList | boolean | true | - [x] / - [ ] task list checkboxes enable करें |
strikethrough | boolean | true | |
footnotes | boolean | true | 1 footnote references और definitions enable करें |
autolink | boolean | true | नंगे URLs को स्वचालित रूप से link करें |
उपयोग
import { compile, gfm } from "@unifast/node";
const result = compile(md, {
plugins: [
gfm({
tables: true,
taskList: true,
strikethrough: true,
footnotes: true,
autolink: true,
}),
],
});