markdown-to-jsx
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -125,3 +125,3 @@ 'use strict'; | ||
var TEXT_ESCAPED_R = /^\\([^0-9A-Za-z\s])/; | ||
var TEXT_PLAIN_R = /^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+:\S|$)/; | ||
var TEXT_PLAIN_R = /^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/; | ||
var TEXT_STRIKETHROUGHED_R = /^~~(?=\S)([\s\S]*?\S)~~/; | ||
@@ -145,10 +145,10 @@ var UNESCAPE_URL_R = /\\([^0-9A-Za-z\s])/g; | ||
// * but this is not part of the same item | ||
var LIST_ITEM_R = new RegExp(LIST_ITEM_PREFIX + '[^\\n]*(?:\\n' + '(?!\\1' + LIST_BULLET + ' )[^\\n]*)*(\n|$)', 'gm'); | ||
var LIST_ITEM_R = new RegExp(LIST_ITEM_PREFIX + '[^\\n]*(?:\\n' + '(?!\\1' + LIST_BULLET + ' )[^\\n]*)*(\\n|$)', 'gm'); | ||
// check whether a list item has paragraphs: if it does, | ||
// we leave the newlines at the end | ||
var LIST_R = new RegExp('^( *)(' + LIST_BULLET + ') ' + '[\\s\\S]+?(?:\n{2,}(?! )' + '(?!\\1' + LIST_BULLET + ' )\\n*' + | ||
var LIST_R = new RegExp('^( *)(' + LIST_BULLET + ') ' + '[\\s\\S]+?(?:\\n{2,}(?! )' + '(?!\\1' + LIST_BULLET + ' )\\n*' + | ||
// the \\s*$ here is so that we can parse the inside of nested | ||
// lists, where our content might end before we receive two `\n`s | ||
'|\\s*\n*$)'); | ||
'|\\s*\\n*$)'); | ||
@@ -927,2 +927,3 @@ var LINK_INSIDE = '(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*'; | ||
var space = LIST_ITEM_PREFIX_R.exec(item)[0].length; | ||
// And then we construct a regex to "unindent" the subsequent | ||
@@ -929,0 +930,0 @@ // lines of the items by that amount: |
@@ -106,3 +106,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var TEXT_ESCAPED_R = /^\\([^0-9A-Za-z\s])/; | ||
var TEXT_PLAIN_R = /^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+:\S|$)/; | ||
var TEXT_PLAIN_R = /^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/; | ||
var TEXT_STRIKETHROUGHED_R = /^~~(?=\S)([\s\S]*?\S)~~/; | ||
@@ -126,10 +126,10 @@ var UNESCAPE_URL_R = /\\([^0-9A-Za-z\s])/g; | ||
// * but this is not part of the same item | ||
var LIST_ITEM_R = new RegExp(LIST_ITEM_PREFIX + '[^\\n]*(?:\\n' + '(?!\\1' + LIST_BULLET + ' )[^\\n]*)*(\n|$)', 'gm'); | ||
var LIST_ITEM_R = new RegExp(LIST_ITEM_PREFIX + '[^\\n]*(?:\\n' + '(?!\\1' + LIST_BULLET + ' )[^\\n]*)*(\\n|$)', 'gm'); | ||
// check whether a list item has paragraphs: if it does, | ||
// we leave the newlines at the end | ||
var LIST_R = new RegExp('^( *)(' + LIST_BULLET + ') ' + '[\\s\\S]+?(?:\n{2,}(?! )' + '(?!\\1' + LIST_BULLET + ' )\\n*' + | ||
var LIST_R = new RegExp('^( *)(' + LIST_BULLET + ') ' + '[\\s\\S]+?(?:\\n{2,}(?! )' + '(?!\\1' + LIST_BULLET + ' )\\n*' + | ||
// the \\s*$ here is so that we can parse the inside of nested | ||
// lists, where our content might end before we receive two `\n`s | ||
'|\\s*\n*$)'); | ||
'|\\s*\\n*$)'); | ||
@@ -908,2 +908,3 @@ var LINK_INSIDE = '(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*'; | ||
var space = LIST_ITEM_PREFIX_R.exec(item)[0].length; | ||
// And then we construct a regex to "unindent" the subsequent | ||
@@ -910,0 +911,0 @@ // lines of the items by that amount: |
@@ -104,3 +104,3 @@ /* @jsx h */ | ||
const TEXT_ESCAPED_R = /^\\([^0-9A-Za-z\s])/; | ||
const TEXT_PLAIN_R = /^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+:\S|$)/; | ||
const TEXT_PLAIN_R = /^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/; | ||
const TEXT_STRIKETHROUGHED_R = /^~~(?=\S)([\s\S]*?\S)~~/; | ||
@@ -127,3 +127,3 @@ const UNESCAPE_URL_R = /\\([^0-9A-Za-z\s])/g; | ||
'[^\\n]*(?:\\n' + | ||
'(?!\\1' + LIST_BULLET + ' )[^\\n]*)*(\n|$)', | ||
'(?!\\1' + LIST_BULLET + ' )[^\\n]*)*(\\n|$)', | ||
'gm' | ||
@@ -136,7 +136,7 @@ ); | ||
'^( *)(' + LIST_BULLET + ') ' + | ||
'[\\s\\S]+?(?:\n{2,}(?! )' + | ||
'[\\s\\S]+?(?:\\n{2,}(?! )' + | ||
'(?!\\1' + LIST_BULLET + ' )\\n*' + | ||
// the \\s*$ here is so that we can parse the inside of nested | ||
// lists, where our content might end before we receive two `\n`s | ||
'|\\s*\n*$)' | ||
'|\\s*\\n*$)' | ||
); | ||
@@ -944,2 +944,3 @@ | ||
let space = LIST_ITEM_PREFIX_R.exec(item)[0].length; | ||
// And then we construct a regex to "unindent" the subsequent | ||
@@ -946,0 +947,0 @@ // lines of the items by that amount: |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"engines": { | ||
@@ -9,0 +9,0 @@ "node": ">= 4" |
Sorry, the diff of this file is not supported yet
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
202424