(content: string): string Convert raw TSDoc @see content to mdz format for rendering.
Handles TSDoc link syntax:
- |text → [text](url) (markdown link)
- ://... → https://... (bare URL, auto-linked by mdz)
- `` → `` identifier `` (code formatting)
- Bare URLs → returned as-is
- Bare identifiers → wrapped in backticks
- identifier description text → `` identifier description text `` (first token is the reference)
content
raw @see tag content in TSDoc format
stringreturns
string mdz-formatted string ready for Mdz component
examples
tsdoc_see_to_mdz('://fuz.dev|API Docs')
// → '[API Docs](https://fuz.dev)'
tsdoc_see_to_mdz('')
// → '`SomeType`'
tsdoc_see_to_mdz('https://example.com')
// → 'https://example.com'
tsdoc_see_to_mdz('library_gen.ts for Gro-specific integration')
// → '`library_gen.ts` for Gro-specific integration'