MCPcopy
hub / github.com/markmap/markmap / createTransformHooks

Function createTransformHooks

packages/markmap-lib/src/plugins/base.ts:4–14  ·  view source on GitHub ↗
(
  transformer: ITransformer,
)

Source from the content-addressed store, hash-verified

2import { ITransformer, ITransformHooks, ITransformPlugin } from '../types';
3
4export function createTransformHooks(
5 transformer: ITransformer,
6): ITransformHooks {
7 return {
8 transformer,
9 parser: new Hook(),
10 beforeParse: new Hook(),
11 afterParse: new Hook(),
12 retransform: new Hook(),
13 };
14}
15
16/**
17 * This function is only used to help type checking.

Callers 1

constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected