---
title: markdown-destination-malformed
description: Reports a Markdown destination with invalid URL or percent-encoding syntax.
---

[← All Rules](/rules/)

## What it does

Reports a destination that Presswork cannot parse, including invalid percent encoding and an incomplete supported-scheme URL.

## Why it matters

A malformed destination cannot identify a stable local or external target.

## Examples

### Non-passing

```md title="docs/guide.md"
[Setup](bad%GG.md)
[Website](https://)
```

### Passing

```md title="docs/guide.md"
[Setup](setup.md)
[Website](https://example.com/)
```

## When it applies

This Rule belongs to the configurable `markdown-destinations` group. It checks Markdown links, images, resolved references, supported autolinks, and `href` or `src` attributes on raw HTML `a` and `img` start tags in Recognized Documents.

## References

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