What mehen emits
| Key | Meaning |
|---|---|
MD.DLOC | Physical Markdown lines (everything). |
MD.PLOC | Prose lines (narrative paragraphs, headings, list text). |
MD.CLOC | Code-fence and indented-code lines. |
MD.TLOC | Table lines. |
MD.MLOC | Math block lines. |
MD.BLOC | Blank lines. |
MD.ALOC | Artifact lines = CLOC + TLOC + MLOC + diagram / raw HTML / MDX lines. |
Derived ratios
Each component /max(1, DLOC) produces a ratio:
ArtifactLineRatioCodeLineRatioTableLineRatioMathLineRatioBlankLineRatio
Worked example
References
- Park, R. E. (1992). Software Size Measurement: A Framework for Counting Source Statements. CMU/SEI-92-TR-20 — the standard reference for LOC categorization that this Markdown family extends to prose / code / table / math / blank lines. SEI report.
- CommonMark Spec: Container blocks and leaf blocks — the parser-level distinctions the per-construct counts rely on.
See also
- Effective Content Units — review-mass normalization that uses these counts.
- Section tree — per-section LOC aggregation.