@himenon/sharp-to-markdown-link
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@himenon/sharp-to-markdown-link

Replace numbers starting with # with markdown links

Usage

Install

npm  install @himenon/sharp-to-markdown-link
yarn add     @himenon/sharp-to-markdown-link
pnpm install @himenon/sharp-to-markdown-link

API

import { sharpToMdLink } from "@himenon/sharp-to-markdown-link";

sharpToMdLink("https://example.com/pull", "#123");
// => [#123](https://example.com/pull/123)

sharpToMdLink("https://example.com/pull", "#123 #124 #125");
// => [#123](https://example.com/pull/123) [#124](https://example.com/pull/124) [#125](https://example.com/pull/125)

Release

  • Automatic version updates are performed when merged into the main branch.

LICENCE

@Himenon/sharp-to-markdown-link・MIT

Package Sidebar

Install

npm i @himenon/sharp-to-markdown-link

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

8.03 kB

Total Files

8

Last publish

Collaborators

  • himenoglyph