To enable GitHub Flavored Markdown (GFM) support—including autolink literals, footnotes, strikethrough, tables, and tasklists—add remarkGfm to your unified processor pipeline using .use(remarkGfm).
This plugin handles parsing and serializing GFM syntax but does not handle the conversion to HTML; that is typically performed by remark-rehype and rehype-stringify.
import rehypeStringify from 'rehype-stringify'
import remarkGfm from 'remark-gfm'
import remarkParse from 'remark-parse'
import remarkRehype from 'remark-rehype'
import {read} from 'to-vfile'
import {unified} from 'unified'
const file = await unified()
.use(remarkParse)
.use(remarkGfm)
.use(remarkRehype)
.use(rehypeStringify)
.process(await read('example.md'))
console.log(String(file))