# marked-base-url

> marked base url

Latest version **1.1.11** (published 2026-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install marked-base-url
pnpm add marked-base-url
yarn add marked-base-url
bun add marked-base-url
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.1.11 |
| Published | 2026-11-16 |
| First published | 2023-04-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 6 |
| Author | Tony Brix |
| Maintainers | tonybrix |
| Keywords | marked, extension, base, url |

## Links

- npm: https://www.npmjs.com/package/marked-base-url
- Repository: https://github.com/markedjs/marked-base-url
- Homepage: https://github.com/markedjs/marked-base-url#readme
- Issues: https://github.com/markedjs/marked-base-url/issues
- npm.io page: https://npm.io/package/marked-base-url

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.1.11 (latest) — 2026-11-16
- 1.1.10 — 2026-07-07
- 1.1.9 — 2026-04-07
- 1.1.8 — 2025-11-07
- 1.1.7 — 2025-06-27
- 1.1.6 — 2024-11-09
- 1.1.5 — 2024-08-07
- 1.1.4 — 2024-06-12
- 1.1.3 — 2024-02-06
- 1.1.2 — 2023-11-30
- 1.1.1 — 2023-11-11
- 1.1.0 — 2023-09-13
- 1.0.8 — 2023-09-11
- 1.0.7 — 2023-09-03
- 1.0.6 — 2023-08-10
- … 6 more at https://npm.io/package/marked-base-url/versions

## README

# marked-base-url

Prefix relative url with base url.

# Usage

```js
// ESM
import {marked} from "marked";
import {baseUrl} from "marked-base-url";

marked.use(baseUrl("https://example.com/folder/"));
const html = marked.parse("[my url](./relative/path)");
// <p><a href="https://example.com/folder/relative/path">my url</a></p>

// BROWSER
<script src="https://cdn.jsdelivr.net/npm/marked"></script>
<script src="https://cdn.jsdelivr.net/npm/marked-base-url"></script>
<script>
    marked.use(markedBaseUrl.baseUrl("https://example.com/folder/"));
    const html = marked.parse("[my url](./relative/path)");
    // <p><a href="https://example.com/folder/relative/path">my url</a></p>
</script>
```

---
_Source: https://npm.io/package/marked-base-url · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
