---
title: markdown-local-target-outside-repository
description: Reports a local Markdown target that escapes the Repository Root.
---

[← All Rules](/rules/)

## What it does

Reports a local destination that resolves outside the Repository Root, either lexically or through a symbolic link.

## Why it matters

The Repository Root is the boundary for documentation validation and local-target inspection.

## Examples

### Non-passing

```md title="docs/guide.md"
[Outside notes](../../outside.md)
```

### Passing

```md title="docs/guide.md"
[Repository notes](../notes.md)
```

## When it applies

This Rule belongs to the configurable `markdown-destinations` group. Both the written path and the resolved filesystem path must remain inside the Repository Root.

## References

See [Concepts](/concepts/) for the Repository Root boundary and [`src/lib/local-target-resolver.ts`](https://github.com/evilkiwi/presswork/blob/main/src/lib/local-target-resolver.ts) for local-target resolution.
