Skip to content

Glydric/marked-base-path

 
 

Repository files navigation

marked-base-path

Prefix relative url with base url.

Usage

import { marked } from "marked";
import { basePath } from "marked-base-path";

//or 
//
// const basePath = require("marked-base-path")

marked.use(basePath("/your/absolute/path"));

marked.parse("[my url](./relative/path)");

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%