{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "isLead",
      "signature": "const isLead = function isLead(lead: DocumentDecl[\"lead\"]): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "frontmatterLines",
      "signature": "const frontmatterLines = function frontmatterLines(doc: DocumentDecl): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "concern",
      "signature": "const concern = typeof doc.concern === \"string\" && doc.concern.length > 0 ? [`concern: ${doc.concern}`] : [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "status",
      "signature": "const status = typeof doc.status === \"string\" && doc.status.length > 0 ? [`status: ${doc.status}`] : [];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "renderDeclaredDoc",
      "signature": "export const renderDeclaredDoc = function renderDeclaredDoc(doc: DocumentDecl): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "heading",
      "signature": "const heading = doc.title ?? titleCase(doc.name);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "lead",
      "signature": "const lead = isLead(doc.lead) ? `${renderRenderable(doc.lead)}\\n\\n` : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "sections",
      "signature": "const sections = doc.body.map((entry) => `## ${entry.heading}\\n\\n${renderRenderable(entry.content)}`).join(\"\\n\\n\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "frontmatter",
      "signature": "const frontmatter = [FRONTMATTER_FENCE, ...frontmatterLines(doc), FRONTMATTER_FENCE].join(\"\\n\");"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-document-formatter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "document.formatter.ts",
  "path": "core/formatters/document.formatter.ts",
  "ref": "anatomy:file-docs-core-formatters-document-formatter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-formatters",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-formatters",
          "label": "core/formatters",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-formatters.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-formatters"
        }
      ],
      "relation": "contained-in"
    }
  ],
  "slots": {
    "concern": "formatter",
    "subject": "document",
    "variant": null
  },
  "stats": {
    "bytes": 1286,
    "callable": 3,
    "definitions": 9,
    "edges": 0,
    "exported": 5,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 9
    },
    "lines": {
      "blank": 3,
      "code": 18,
      "total": 21
    }
  },
  "summary": "18 lines of code and 9 definitions.",
  "text": "https://banes-lab.com/source/docs/core/formatters/document.formatter.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-figure-formatter-ts",
      "json": "https://banes-lab.com/json/source/docs/core/formatters/figure.formatter.ts",
      "label": "core/formatters/figure.formatter.ts",
      "markdown": "https://banes-lab.com/source/docs/core/formatters/figure.formatter.ts.md",
      "ref": "anatomy:file-docs-core-formatters-figure-formatter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-formatters-diagram-structure-formatter-ts",
      "json": "https://banes-lab.com/json/source/docs/core/formatters/diagram.structure.formatter.ts",
      "label": "core/formatters/diagram.structure.formatter.ts",
      "markdown": "https://banes-lab.com/source/docs/core/formatters/diagram.structure.formatter.ts.md",
      "ref": "anatomy:file-docs-core-formatters-diagram-structure-formatter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/docs/core/formatters",
    "label": "core/formatters",
    "markdown": "https://banes-lab.com/api/source/docs/core/formatters.md",
    "ref": "api:source/docs/core/formatters"
  }
}
