fix(docs): Clean up markdown output for LLM content negotiation (#11452)
## Summary
- Removes `import` statements from markdown output served via `Accept:
text/markdown`
- Collapses multiple consecutive blank lines into a single blank line
These cleanups make the markdown output cleaner for AI agents consuming
the docs.