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

Function setMdastExtensions

packages/deserializer/src/markdown.ts:217–225  ·  view source on GitHub ↗
(ext: MarkdownDeserializerMdastExtension)

Source from the content-addressed store, hash-verified

215 const mdastExtensions: MarkdownDeserializerMdastExtension[] = []
216
217 const setMdastExtensions = (ext: MarkdownDeserializerMdastExtension) => {
218 if (Array.isArray(ext)) {
219 for (const e of ext) {
220 setMdastExtensions(e)
221 }
222 } else if (!mdastExtensions.some(e => e === ext)) {
223 mdastExtensions.push(ext)
224 }
225 }
226
227 for (const plugin of this._plugins.concat(plugins)) {
228 if (plugin.extensions) setExtensionsOrDisable(plugin.extensions)

Callers 1

toMdastFunction · 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…