markdown-it-attrs
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -578,11 +578,11 @@ (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){ | ||
// {.class} {..css-module} | ||
if (char_ === classChar) { | ||
if (key === '') { | ||
if (char_ === classChar && key === '') { | ||
if (str.charAt(i + 1) === classChar) { | ||
key = 'css-module'; | ||
i += 1; | ||
} else { | ||
key = 'class'; | ||
parsingKey = false; | ||
continue; | ||
} else if (key === 'class') { | ||
key = 'css-module'; | ||
continue; | ||
} | ||
parsingKey = false; | ||
continue; | ||
} | ||
@@ -589,0 +589,0 @@ |
{ | ||
"name": "markdown-it-attrs", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Add classes, identifiers and attributes to your markdown with {} curly brackets, similar to pandoc's header attributes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14
utils.js
@@ -39,11 +39,11 @@ 'use strict'; | ||
// {.class} {..css-module} | ||
if (char_ === classChar) { | ||
if (key === '') { | ||
if (char_ === classChar && key === '') { | ||
if (str.charAt(i + 1) === classChar) { | ||
key = 'css-module'; | ||
i += 1; | ||
} else { | ||
key = 'class'; | ||
parsingKey = false; | ||
continue; | ||
} else if (key === 'class') { | ||
key = 'css-module'; | ||
continue; | ||
} | ||
parsingKey = false; | ||
continue; | ||
} | ||
@@ -50,0 +50,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52868