---
title: markdown-local-target-case-mismatch
description: Reports a local Markdown target whose path casing differs from the repository path.
---

[← All Rules](/rules/)

## What it does

Reports a local destination when each path segment does not use the exact casing stored in the repository.

## Why it matters

Case-only differences can work on one filesystem and fail on another.

## Examples

### Non-passing

```text title="Repository tree"
docs/
├── guide.md        # links to TARGET.md
└── target.md
```

### Passing

```text title="Repository tree"
docs/
├── guide.md        # links to target.md
└── target.md
```

## When it applies

This Rule belongs to the configurable `markdown-destinations` group. Local paths are percent-decoded once before Presswork compares repository path casing.

## References

See [Presswork Configuration](/configuration/#profile) for Profile selection and [`src/lib/local-target-resolver.ts`](https://github.com/evilkiwi/presswork/blob/main/src/lib/local-target-resolver.ts) for local-target resolution.
