Expand description
Markdown normalization + content hashing. Single source of truth for the
content_hash so cosmetic churn (trailing whitespace, blank-line runs,
CRLF) never flips a page from same to changed.
Functionsยง
- canonical_
json_ string - Serialize a JSON value with object keys sorted recursively. Deterministic regardless of input key order.
- hash_
json - Hex SHA-256 of a canonicalized JSON value (object keys sorted recursively), so logically-equal extractions with different key ordering hash equal.
- hash_
markdown - Hex SHA-256 of the normalized markdown.
- hash_
str - Hex SHA-256 of a string.
- normalize_
markdown - Normalize markdown before hashing/diffing: