Skip to main content

Module renderers

Module renderers 

Source
Expand description

Port of upstream Markdoc v0.5.11’s src/renderers/index.ts.

Owner: the semantics agent (html); the api agent (react, react_static).

renderers.html (html), renderers.react (react, React behind a trait) and renderers.reactStatic (react_static).

Modules§

html
Port of upstream Markdoc v0.5.11’s src/renderers/html.ts.
react
Port of upstream Markdoc v0.5.11’s src/renderers/react/react.ts: renderers.react(node, React, {components, resolveTagName}), a render tree as React elements.
react_static
Port of upstream Markdoc v0.5.11’s src/renderers/react/static.ts: renderers.reactStatic(node, {resolveTagName}), the JavaScript source of a function that builds a render tree’s React elements.