Since 0.1.0
MarkdownStats
The return type of getMarkdownStats.
import type { MarkdownStats } from "@qino/cms/utils";
type MarkdownStats = {
wordCount: number;
proseCharacterCount: number;
sourceCharacterCount: number;
};
Fields
| Field | Description |
|---|---|
wordCount | Word-like segments in the extracted prose |
proseCharacterCount | Grapheme count of the prose after whitespace collapsing |
sourceCharacterCount | Grapheme count of the raw input, including syntax and code |
See getMarkdownStats for what counts as prose.