Socket
Socket
Sign inDemoInstall

mdast-util-gfm-autolink-literal

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast-util-gfm-autolink-literal - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

5

index.d.ts

@@ -1,4 +0,1 @@

export {
gfmAutolinkLiteralFromMarkdown,
gfmAutolinkLiteralToMarkdown
} from './lib/index.js'
export { gfmAutolinkLiteralFromMarkdown, gfmAutolinkLiteralToMarkdown } from "./lib/index.js";

18

lib/index.d.ts

@@ -8,3 +8,3 @@ /**

*/
export function gfmAutolinkLiteralFromMarkdown(): FromMarkdownExtension
export function gfmAutolinkLiteralFromMarkdown(): FromMarkdownExtension;
/**

@@ -17,14 +17,4 @@ * Create an extension for `mdast-util-to-markdown` to enable GFM autolink

*/
export function gfmAutolinkLiteralToMarkdown(): ToMarkdownExtension
export type Link = import('mdast').Link
export type PhrasingContent = import('mdast').PhrasingContent
export type CompileContext = import('mdast-util-from-markdown').CompileContext
export type FromMarkdownExtension = import('mdast-util-from-markdown').Extension
export type FromMarkdownHandle = import('mdast-util-from-markdown').Handle
export type FromMarkdownTransform = import('mdast-util-from-markdown').Transform
export type ConstructName = import('mdast-util-to-markdown').ConstructName
export type ToMarkdownExtension = import('mdast-util-to-markdown').Options
export type RegExpMatchObject =
import('mdast-util-find-and-replace').RegExpMatchObject
export type ReplaceFunction =
import('mdast-util-find-and-replace').ReplaceFunction
export function gfmAutolinkLiteralToMarkdown(): ToMarkdownExtension;
import type { Extension as FromMarkdownExtension } from 'mdast-util-from-markdown';
import type { Options as ToMarkdownExtension } from 'mdast-util-to-markdown';
/**
* @typedef {import('mdast').Link} Link
* @typedef {import('mdast').PhrasingContent} PhrasingContent
*
* @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
* @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
* @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
* @typedef {import('mdast-util-from-markdown').Transform} FromMarkdownTransform
*
* @typedef {import('mdast-util-to-markdown').ConstructName} ConstructName
* @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
*
* @typedef {import('mdast-util-find-and-replace').RegExpMatchObject} RegExpMatchObject
* @typedef {import('mdast-util-find-and-replace').ReplaceFunction} ReplaceFunction
* @import {RegExpMatchObject, ReplaceFunction} from 'mdast-util-find-and-replace'
* @import {CompileContext, Extension as FromMarkdownExtension, Handle as FromMarkdownHandle, Transform as FromMarkdownTransform} from 'mdast-util-from-markdown'
* @import {ConstructName, Options as ToMarkdownExtension} from 'mdast-util-to-markdown'
* @import {Link, PhrasingContent} from 'mdast'
*/

@@ -144,3 +135,3 @@

[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, findUrl],
[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g, findEmail]
[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, findEmail]
],

@@ -287,4 +278,5 @@ {ignore: ['link', 'linkReference']}

unicodePunctuation(code)) &&
// If it’s an email, the previous character should not be a slash.
(!email || code !== 47)
)
}
{
"name": "mdast-util-gfm-autolink-literal",
"version": "2.0.0",
"version": "2.0.1",
"description": "mdast extension to parse and serialize GFM autolink literals",

@@ -48,15 +48,15 @@ "license": "MIT",

"devDependencies": {
"@types/node": "^20.0.0",
"c8": "^8.0.0",
"hast-util-to-html": "^8.0.0",
"@types/node": "^22.0.0",
"c8": "^10.0.0",
"hast-util-to-html": "^9.0.0",
"mdast-util-from-markdown": "^2.0.0",
"mdast-util-to-hast": "^12.0.0",
"mdast-util-to-hast": "^13.0.0",
"mdast-util-to-markdown": "^2.0.0",
"micromark-extension-gfm-autolink-literal": "^2.0.0",
"prettier": "^2.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"prettier": "^3.0.0",
"remark-cli": "^12.0.0",
"remark-preset-wooorm": "^10.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"xo": "^0.54.0"
"xo": "^0.59.0"
},

@@ -66,3 +66,3 @@ "scripts": {

"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test-api-prod": "node --conditions production test/index.js",

@@ -104,2 +104,3 @@ "test-api-dev": "node --conditions development test/index.js",

"rules": {
"unicorn/prefer-at": "off",
"unicorn/prefer-code-point": "off"

@@ -106,0 +107,0 @@ }

@@ -15,17 +15,17 @@ # mdast-util-gfm-autolink-literal

* [What is this?](#what-is-this)
* [When to use this](#when-to-use-this)
* [Install](#install)
* [Use](#use)
* [API](#api)
* [`gfmAutolinkLiteralFromMarkdown()`](#gfmautolinkliteralfrommarkdown)
* [`gfmAutolinkLiteralToMarkdown()`](#gfmautolinkliteraltomarkdown)
* [HTML](#html)
* [Syntax](#syntax)
* [Syntax tree](#syntax-tree)
* [Types](#types)
* [Compatibility](#compatibility)
* [Related](#related)
* [Contribute](#contribute)
* [License](#license)
* [What is this?](#what-is-this)
* [When to use this](#when-to-use-this)
* [Install](#install)
* [Use](#use)
* [API](#api)
* [`gfmAutolinkLiteralFromMarkdown()`](#gfmautolinkliteralfrommarkdown)
* [`gfmAutolinkLiteralToMarkdown()`](#gfmautolinkliteraltomarkdown)
* [HTML](#html)
* [Syntax](#syntax)
* [Syntax tree](#syntax-tree)
* [Types](#types)
* [Compatibility](#compatibility)
* [Related](#related)
* [Contribute](#contribute)
* [License](#license)

@@ -237,9 +237,9 @@ ## What is this?

* [`remarkjs/remark-gfm`][remark-gfm]
— remark plugin to support GFM
* [`syntax-tree/mdast-util-gfm`][mdast-util-gfm]
— same but all of GFM (autolink literals, footnotes, strikethrough, tables,
tasklists)
* [`micromark/micromark-extension-gfm-autolink-literal`][extension]
— micromark extension to parse GFM autolink literals
* [`remarkjs/remark-gfm`][remark-gfm]
— remark plugin to support GFM
* [`syntax-tree/mdast-util-gfm`][mdast-util-gfm]
— same but all of GFM (autolink literals, footnotes, strikethrough, tables,
tasklists)
* [`micromark/micromark-extension-gfm-autolink-literal`][extension]
— micromark extension to parse GFM autolink literals

@@ -246,0 +246,0 @@ ## Contribute

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