MCPcopy Create free account
hub / github.com/editablejs/editable / prepareMDX

Function prepareMDX

apps/docs/src/utils/prepare-mdx.js:10–14  ·  view source on GitHub ↗
(rawChildren)

Source from the content-addressed store, hash-verified

8// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9
10export function prepareMDX(rawChildren) {
11 const toc = getTableOfContents(rawChildren)
12 const children = wrapChildrenInMaxWidthContainers(rawChildren)
13 return { toc, children }
14}
15
16function wrapChildrenInMaxWidthContainers(children) {
17 // Auto-wrap everything except a few types into

Callers 1

getStaticPropsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…