Internal-link insertion has several documented strategies (marker-based, first-paragraph fallback, markerMissing flag). Expand the vitest suite in the API package to cover the fallback branches and edge cases: empty content, no paragraph break, marker present vs absent.
Acceptance criteria
- New tests under the API package test dir; all green.
- Test-only; no product behavior changed.
Internal-link insertion has several documented strategies (marker-based, first-paragraph fallback,
markerMissingflag). Expand the vitest suite in the API package to cover the fallback branches and edge cases: empty content, no paragraph break, marker present vs absent.Acceptance criteria