Just store the receipt Perform a calculation e.g. convert Markdown to HTML. Get the HTML’s digest (e.g. SHA256). Store the digest against the Markdown’s entry. Throw away the generated HTML, as you can always generate it again.