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

Function transformer

apps/docs/plugins/remark-smartypants.js:14–18  ·  view source on GitHub ↗
(tree)

Source from the content-addressed store, hash-verified

12 const processor = retext().use(smartypants, options)
13
14 function transformer(tree) {
15 visit(tree, 'text', (node, index, parent) => {
16 if (check(parent)) node.value = String(processor.processSync(node.value))
17 })
18 }
19
20 return transformer
21}

Callers

nothing calls this directly

Calls 2

checkFunction · 0.85
StringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…