---
title: withMarkdownNegotiation
description: >-
  Run the shared Svartz handle ahead of the standalone adapters' static-file
  handlers.
updated_at: '2026-11-19T06:31:08+01:00'
created_at: '2026-11-11T18:06:16+01:00'
symbol:
  kind: function
  name: withMarkdownNegotiation
  signatures:
    - >-
      withMarkdownNegotiation<T extends Adapter>(adapter: T, target: string,
      outDir: string): T
  typeParameters:
    - name: T
      constraint: Adapter
  parameters:
    - name: adapter
      type: T
    - name: target
      type: string
    - name: outDir
      type: string
  returns:
    type: T
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/vite/src/markdown-adapter.ts#L37
---

# withMarkdownNegotiation
