MCPcopy
hub / github.com/markdoc/markdoc / Markdoc

Class Markdoc

index.ts:127–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125};
126
127export default class Markdoc {
128 static nodes = nodes;
129 static tags = tags;
130 static functions = functions;
131 static globalAttributes = globalAttributes;
132 static renderers = renderers;
133 static transforms = transforms;
134 static Ast = Ast;
135 static Tag = Tag;
136 static Tokenizer = Tokenizer;
137 static parseTags = parseTags;
138 static transformer = transformer;
139 static validator = validator;
140 static parse = parse;
141 static transform = transform;
142 static validate = validate;
143 static createElement = createElement;
144 static truthy = truthy;
145 static format = format;
146
147 config;
148 constructor(config: Config) {
149 this.config = config;
150 }
151
152 parse = parse;
153 resolve = (content: Parameters<typeof resolve>[0]) =>
154 resolve(content, this.config);
155 transform = (content: Parameters<typeof transform>[0]) =>
156 transform(content, this.config);
157 validate = (content: Parameters<typeof validate>[0]) =>
158 validate(content, this.config);
159}

Callers

nothing calls this directly

Calls 3

resolveFunction · 0.70
transformFunction · 0.70
validateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…