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

Function setExtensionsOrDisable

packages/deserializer/src/markdown.ts:202–213  ·  view source on GitHub ↗
(ext: MarkdownDeserializerExtension)

Source from the content-addressed store, hash-verified

200 ]
201
202 const setExtensionsOrDisable = (ext: MarkdownDeserializerExtension) => {
203 if (Array.isArray(ext)) {
204 for (const e of ext) {
205 setExtensionsOrDisable(e)
206 }
207 } else if (typeof ext === 'string') {
208 const index = disable.indexOf(ext)
209 if (index > -1) disable.splice(index, 1)
210 } else {
211 extensions.push(ext)
212 }
213 }
214
215 const mdastExtensions: MarkdownDeserializerMdastExtension[] = []
216

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…