🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

marked-linkify-it

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marked-linkify-it

marked extension to use linkify-it for autolinks

latest
Source
npmnpm
Version
3.1.15
Version published
Weekly downloads
15K
-16.63%
Maintainers
1
Weekly downloads
 
Created
Source

marked-linkify-it

marked using linkify-it for urls

Usage

import { marked } from "marked";
import markedLinkifyIt from "marked-linkify-it";

// or UMD script
// <script src="https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js"></script>
// <script src="https://cdn.jsdelivr.net/npm/marked-linkify-it/lib/index.umd.js"></script>

const schemas = {};
const options = {};

marked.use(markedLinkifyIt(schemas, options));

marked("example.com");
// <p><a href="http://example.com">example.com</a></p>

schemas

see https://github.com/markdown-it/linkify-it#api

Note: #add() doesn't work with this extension

markedLinkifyIt.add('@', {...}) // Doesn't work, you need to pass a schema manually

Instead do:

const schemas = {
	'@': {
		validate: function (text, pos, self) {
			// ...
		},
		normalize: function (match) {
			// ...
		}
	}
};

options

see https://github.com/markdown-it/linkify-it#api

linkify options plus the following additional options:

tlds

String|String[]

replace or add tlds for fuzzy links/

tldsKeepOld

Boolean; Default: false

true to add domains instead of replacing domain list.

Keywords

marked

FAQs

Package last updated on 07 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts