---
title: renderPreview
description: >-
  The note's HTML, rendered from `markdown` (frontmatter and all) as the site
  would render its body. A URL naming one of `options.attachments`, by the
  build's rules, links to where the build publishes it: `<base><mount>/<vault
  path>`. Any other relative URL resolves from the note's page, as on the site.
updated_at: '2026-11-25T18:59:45+01:00'
created_at: '2026-11-12T12:04:45+01:00'
symbol:
  kind: function
  name: renderPreview
  signatures:
    - >-
      renderPreview(markdown: string, options:
      [[reference/api/plugins/preview/PreviewOptions|PreviewOptions]]):
      Promise<string>
  parameters:
    - name: markdown
      type: string
    - name: options
      type: '[[reference/api/plugins/preview/PreviewOptions|PreviewOptions]]'
  returns:
    type: Promise<string>
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugins/src/preview.ts#L130
---

# renderPreview
