---
title: classifyLink
description: >-
  Classify a link in rendered note content. Internal links get previews and the
  internal style; files, heading anchors, and footnote links stay quiet.
updated_at: '2026-09-25T10:30:20+02:00'
created_at: '2026-09-25T10:30:03+02:00'
symbol:
  kind: function
  name: classifyLink
  signatures:
    - >-
      classifyLink(href: string | undefined, attributes?:
      Readonly<Record<string, string | boolean>>):
      [[reference/api/ui/LinkKind|LinkKind]]
  parameters:
    - name: href
      type: string | undefined
    - name: attributes
      type: 'Readonly<Record<string, string | boolean>>'
      optional: true
  returns:
    type: '[[reference/api/ui/LinkKind|LinkKind]]'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/ui/src/lib/content/links.ts#L13
---

# classifyLink
