Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markdown-it-attrs

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-attrs - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

.nyc_output/cbc8dc59-1d97-429d-bca4-d744ac635210.json

7

index.js

@@ -11,6 +11,5 @@ 'use strict';

module.exports = function attributes(md, options) {
if (!options) {
options = defaultOptions;
}
module.exports = function attributes(md, options_) {
let options = Object.assign({}, defaultOptions);
options = Object.assign(options, options_);

@@ -17,0 +16,0 @@ const patterns = patternsConfig(options);

@@ -14,7 +14,5 @@ (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){

module.exports = function attributes(md, options) {
if (!options) {
options = defaultOptions;
}
module.exports = function attributes(md, options_) {
var options = Object.assign({}, defaultOptions);
options = Object.assign(options, options_);
var patterns = patternsConfig(options);

@@ -21,0 +19,0 @@

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

@@ -18,6 +18,7 @@ "main": "index.js",

"browser": "browserify index.js -t [ babelify --presets [ @babel/preset-env ] ] --standalone markdown-it-attrs -o markdown-it-attrs.browser.js",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"lint": "eslint .",
"preversion": "mocha && npm run browser && git add markdown-it-attrs.browser.js",
"postpublish": "git push && git push --tags",
"test": "npm run lint && mocha"
"test": "npm run lint && nyc mocha"
},

@@ -30,9 +31,5 @@ "homepage": "https://github.com/arve0/markdown-it-attrs",

"markdown-it-plugin",
"attribute",
"attributes",
"class",
"classes",
"id",
"ids",
"identifier",
"identifiers",

@@ -49,6 +46,8 @@ "curly brackets",

"browserify": "^16.2.3",
"coveralls": "^3.0.3",
"eslint": "^5.16.0",
"markdown-it": "^8.4.2",
"markdown-it-implicit-figures": "^0.9.0",
"mocha": "*"
"mocha": "*",
"nyc": "^14.1.1"
},

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

@@ -1,2 +0,2 @@

# markdown-it-attrs [![Build Status](https://travis-ci.org/arve0/markdown-it-attrs.svg?branch=master)](https://travis-ci.org/arve0/markdown-it-attrs) [![npm version](https://badge.fury.io/js/markdown-it-attrs.svg)](http://badge.fury.io/js/markdown-it-attrs)
# markdown-it-attrs [![Build Status](https://travis-ci.org/arve0/markdown-it-attrs.svg?branch=master)](https://travis-ci.org/arve0/markdown-it-attrs) [![npm version](https://badge.fury.io/js/markdown-it-attrs.svg)](http://badge.fury.io/js/markdown-it-attrs) [![Coverage Status](https://coveralls.io/repos/github/arve0/markdown-it-attrs/badge.svg?branch=master)](https://coveralls.io/github/arve0/markdown-it-attrs?branch=master)

@@ -177,3 +177,3 @@ Add classes, identifiers and attributes to your markdown with `{.class #identifier attr=value attr2="spaced value"}` curly brackets, similar to [pandoc's header attributes](http://pandoc.org/README.html#extension-header_attributes).

To use different delimiters then the default, add configuration for `leftDelimiter` and `rightDelimiter`:
To use different delimiters than the default, add configuration for `leftDelimiter` and `rightDelimiter`:

@@ -180,0 +180,0 @@ ```js

Sorry, the diff of this file is not supported yet

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