---
title: PreviewOptions
updated_at: '2026-11-25T18:59:45+01:00'
created_at: '2026-11-12T12:04:45+01:00'
symbol:
  kind: interface
  name: PreviewOptions
  signatures:
    - interface PreviewOptions
  members:
    - name: notes
      kind: property
      signature: >-
        readonly notes: readonly
        [[reference/api/plugins/preview/PreviewNote|PreviewNote]][]
      description: The notes links resolve to; any other link shows unresolved.
    - name: linkResolution
      kind: property
      signature: >-
        readonly linkResolution:
        [[reference/api/core/LinkResolutionStrategy|LinkResolutionStrategy]]
    - name: path
      kind: property
      signature: 'readonly path: string'
      description: >-
        The previewed note's path inside the vault, `.md` included: relative
        links and `closest` resolve from it.
    - name: base
      kind: property
      signature: 'readonly base: string'
      description: 'SvelteKit''s deployment base, which every link''s URL starts with.'
    - name: mountPath
      kind: property
      signature: 'readonly mountPath: string'
      description: >-
        The vault's mount path, `""` at the site's root: attachment URLs start
        with it.
    - name: attachments
      kind: property
      signature: 'readonly attachments: readonly string[]'
      description: >-
        The vault paths of the attachments the site publishes; links and embeds
        naming any other file stay unresolved.
    - name: sharedNames
      kind: property
      signature: 'readonly sharedNames?: readonly string[]'
      description: >-
        File names of `attachments` that unpublished files share too: as on the
        site, they never resolve by name alone.
    - name: tagsRoute
      kind: property
      signature: 'readonly tagsRoute?: string'
      description: 'The theme''s tags route, as `theme.routes.tags`.'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugins/src/preview.ts#L33
description: ''
---

# PreviewOptions
