MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / header

Function header

packages/ast/parse/linen/spec-helpers/index.js:59–66  ·  view source on GitHub ↗
(children, depth = 1)

Source from the content-addressed store, hash-verified

57}
58
59function header(children, depth = 1) {
60 return {
61 type: 'header',
62 children,
63 depth,
64 source: `${'#'.repeat(depth)} ${source(children)}`,
65 };
66}
67
68function list(children, { ordered = false, prefix = '-' } = {}) {
69 return {

Callers 1

index.spec.jsFile · 0.85

Calls 1

sourceFunction · 0.70

Tested by

no test coverage detected