* fix: Apply all content transforms in DocumentHelper.toJSON
replaceInternalUrls was declared async although it does no async work, so the
promise it returned was passed into removeMarks, which returned it untouched
rather than walking it. Made the method synchronous, and typed the local in
toJSON so the compiler reports a promise flowing through the transform chain.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* chore: JSDoc punctuation and explicit return type on replaceInternalUrls
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>