MCPcopy
hub / github.com/remarkjs/react-markdown / MarkdownAsync

Function MarkdownAsync

lib/index.js:194–199  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

192 * Promise to a React element.
193 */
194export async function MarkdownAsync(options) {
195 const processor = createProcessor(options)
196 const file = createFile(options)
197 const tree = await processor.run(processor.parse(file), file)
198 return post(tree, options)
199}
200
201/**
202 * Component to render markdown with support for async plugins through hooks.

Callers

nothing calls this directly

Calls 3

createProcessorFunction · 0.85
createFileFunction · 0.85
postFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…