---
title: markdownCopyFor
description: >-
  The emitted Markdown copy of the page at a request `pathname`, if it has one.
  Map keys are decoded and end in a slash; request paths arrive percent-encoded,
  and without the slash under `trailingSlash: 'never'`.
updated_at: '2026-11-19T06:37:33+01:00'
created_at: '2026-11-11T09:53:08+01:00'
symbol:
  kind: function
  name: markdownCopyFor
  signatures:
    - >-
      markdownCopyFor(markdown: Readonly<Record<string, string>> | undefined,
      pathname: string): string | undefined
  parameters:
    - name: markdown
      type: 'Readonly<Record<string, string>> | undefined'
    - name: pathname
      type: string
  returns:
    type: string | undefined
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/core/src/plugin/server.ts#L314
---

# markdownCopyFor
