Socket
Socket
Sign inDemoInstall

markdown-it-attrs

Package Overview
Dependencies
6
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.1 to 4.1.2

3

markdown-it-attrs.browser.js

@@ -516,3 +516,4 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.markdownItAttrs = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

var start = content.lastIndexOf(options.leftDelimiter);
token.attrs = utils.getAttrs(content, start, options);
var attrs = utils.getAttrs(content, start, options);
utils.addAttrs(attrs, token);
token.markup = content;

@@ -519,0 +520,0 @@ tokens.splice(i + 1, 2);

{
"name": "markdown-it-attrs",
"version": "4.1.1",
"version": "4.1.2",
"description": "Add classes, identifiers and attributes to your markdown with {} curly brackets, similar to pandoc's header attributes",

@@ -38,3 +38,2 @@ "main": "index.js",

],
"dependencies": {},
"devDependencies": {

@@ -46,8 +45,8 @@ "@babel/core": "^7.15.5",

"coveralls": "^3.1.1",
"eslint": "^5.16.0",
"eslint": "^8.4.1",
"markdown-it": "^12.2.0",
"markdown-it-implicit-figures": "^0.9.0",
"markdown-it-katex": "^2.0.3",
"mocha": "^7.2.0",
"nyc": "^14.1.1"
"mocha": "^9.1.3",
"nyc": "^15.1.0"
},

@@ -54,0 +53,0 @@ "peerDependencies": {

@@ -299,3 +299,4 @@ 'use strict';

let start = content.lastIndexOf(options.leftDelimiter);
token.attrs = utils.getAttrs(content, start, options);
let attrs = utils.getAttrs(content, start, options);
utils.addAttrs(attrs, token);
token.markup = content;

@@ -302,0 +303,0 @@ tokens.splice(i + 1, 2);

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc