MCPcopy Index your code
hub / github.com/markdoc/markdoc / transform

Function transform

src/schema.ts:28–34  ·  view source on GitHub ↗
(node, config)

Source from the content-addressed store, hash-verified

26 level: { type: Number, render: false, required: true },
27 },
28 transform(node, config) {
29 return new Tag(
30 `h${node.attributes['level']}`,
31 node.transformAttributes(config),
32 node.transformChildren(config)
33 );
34 },
35};
36
37export const paragraph: Schema = {

Callers 1

parserFunction · 0.70

Calls 2

transformAttributesMethod · 0.80
transformChildrenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…