Skip to content

Markdown target

Use the Markdown target when you want generated contract reference output from the same TypeSpec graph as your runtime targets.

emit-targets:
- type: Markdown
output-dir: "generated/markdown"
OptionWhy it matters
output-dirWhere generated Markdown reference files are written.
formatControls target formatting when supported by the target configuration.

Generated Markdown is reference material, not product narrative. Review it before publishing and link it from hand-authored docs when it helps users inspect the contract graph.

Typra also emits json-ast/model.json for every generation. Use it for tooling, review, verification, and schema evolution; do not treat it as a runtime API.