Socket
Socket
Sign inDemoInstall

micromark-extension-gfm-autolink-literal

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micromark-extension-gfm-autolink-literal

micromark extension to support GFM autolink literals


Version published
Maintainers
0
Created

What is micromark-extension-gfm-autolink-literal?

The micromark-extension-gfm-autolink-literal package is an extension for micromark that provides support for GitHub Flavored Markdown (GFM) autolink literals. This means it can automatically convert URLs, email addresses, and other literal links into clickable links in Markdown content.

What are micromark-extension-gfm-autolink-literal's main functionalities?

Autolink URLs

This feature automatically converts plain URLs into clickable links. In the example, the URL 'https://example.com' is converted into a clickable link.

const micromark = require('micromark');
const gfmAutolinkLiteral = require('micromark-extension-gfm-autolink-literal');

const input = 'Check out https://example.com for more info.';
const output = micromark(input, { extensions: [gfmAutolinkLiteral()] });
console.log(output);

Autolink Email Addresses

This feature automatically converts plain email addresses into clickable mailto links. In the example, the email address 'support@example.com' is converted into a clickable mailto link.

const micromark = require('micromark');
const gfmAutolinkLiteral = require('micromark-extension-gfm-autolink-literal');

const input = 'Contact us at support@example.com.';
const output = micromark(input, { extensions: [gfmAutolinkLiteral()] });
console.log(output);

Autolink www-prefixed URLs

This feature automatically converts www-prefixed URLs into clickable links. In the example, the URL 'www.example.com' is converted into a clickable link.

const micromark = require('micromark');
const gfmAutolinkLiteral = require('micromark-extension-gfm-autolink-literal');

const input = 'Visit www.example.com for details.';
const output = micromark(input, { extensions: [gfmAutolinkLiteral()] });
console.log(output);

Other packages similar to micromark-extension-gfm-autolink-literal

Keywords

FAQs

Package last updated on 05 Jul 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc