MCPcopy Create free account
hub / github.com/github/docs / createMinimalProcessor

Function createMinimalProcessor

lib/render-content/create-processor.js:51–60  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

49}
50
51export function createMinimalProcessor(context) {
52 return unified()
53 .use(process.env.COMMONMARK ? markdownNext : markdown)
54 .use(process.env.COMMONMARK ? gfm : null)
55 .use(remark2rehype, { allowDangerousHtml: true })
56 .use(slug)
57 .use(raw)
58 .use(rewriteLocalLinks, context)
59 .use(html)
60}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected