---
title: wikilinkSegments
description: >-
  Frontmatter isn't run through the Markdown pipeline, so values like `Home:
  "[[Vessa]], Lower Wards"` keep raw `[[links]]`. Split such a value into text
  and linked segments, resolving targets against published notes by title, file
  name, or slug. Unresolved links become plain text.
updated_at: '2026-11-26T01:47:51+01:00'
created_at: '2026-09-25T10:30:20+02:00'
symbol:
  kind: function
  name: wikilinkSegments
  signatures:
    - >-
      wikilinkSegments(value: string, entries: readonly { readonly slug: string;
      readonly title: string; readonly href: string }[]):
      [[reference/api/ui/LinkSegment|LinkSegment]][]
  parameters:
    - name: value
      type: string
    - name: entries
      type: >-
        readonly { readonly slug: string; readonly title: string; readonly href:
        string }[]
  returns:
    type: '[[reference/api/ui/LinkSegment|LinkSegment]][]'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/ui/src/lib/wikilinks.ts#L18
---

# wikilinkSegments
