remark-parse
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -53,2 +53,3 @@ 'use strict' | ||
['thematicBreak'], | ||
['list'], | ||
['atxHeading'], | ||
@@ -55,0 +56,0 @@ ['fencedCode'], |
@@ -39,3 +39,3 @@ 'use strict' | ||
var start = null | ||
var size = 0 | ||
var size | ||
var queue | ||
@@ -68,7 +68,3 @@ var ordered | ||
if (character === tab) { | ||
size += tabSize - (size % tabSize) | ||
} else if (character === space) { | ||
size++ | ||
} else { | ||
if (character !== tab && character !== space) { | ||
break | ||
@@ -80,6 +76,2 @@ } | ||
if (size >= tabSize) { | ||
return | ||
} | ||
character = value.charAt(index) | ||
@@ -114,2 +106,10 @@ | ||
/* Slightly abusing `silent` mode, whose goal is to make interrupting | ||
* paragraphs work. | ||
* Well, that’s exactly what we want to do here: don’t interrupt: | ||
* 2. here, because the “list” doesn’t start with `1`. */ | ||
if (silent && queue !== '1') { | ||
return | ||
} | ||
start = parseInt(queue, 10) | ||
@@ -148,3 +148,2 @@ marker = character | ||
end = index + tabSize | ||
size = 0 | ||
@@ -166,6 +165,2 @@ | ||
if (size >= tabSize) { | ||
indented = true | ||
} | ||
if (item && size >= item.indent) { | ||
@@ -172,0 +167,0 @@ indented = true |
'use strict' | ||
var trim = require('trim') | ||
var decimal = require('is-decimal') | ||
var trimTrailingLines = require('trim-trailing-lines') | ||
@@ -21,3 +20,2 @@ var interrupt = require('../util/interrupt') | ||
var commonmark = settings.commonmark | ||
var gfm = settings.gfm | ||
var tokenizers = self.blockTokenizers | ||
@@ -78,13 +76,2 @@ var interruptors = self.interruptParagraph | ||
// Break if the following line starts a list, when already in a list, or | ||
// when in commonmark, or when in gfm mode and the bullet is *not* numeric. | ||
if ( | ||
tokenizers.list.call(self, eat, subvalue, true) && | ||
(self.inList || | ||
commonmark || | ||
(gfm && !decimal(trim.left(subvalue).charAt(0)))) | ||
) { | ||
break | ||
} | ||
position = index | ||
@@ -91,0 +78,0 @@ index = value.indexOf(lineFeed, index + 1) |
{ | ||
"name": "remark-parse", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"description": "remark plugin to parse Markdown", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -27,5 +27,5 @@ # remark-parse | ||
<td width="33.33%" align="center" colspan="2"> | ||
<a href="https://zeit.co">ZEIT</a><br>🥇<br><br> | ||
<a href="https://vercel.com">Vercel</a><br>🥇<br><br> | ||
<!--OC has a sharper image--> | ||
<a href="https://zeit.co"><img src="https://images.opencollective.com/zeit/d8a5bee/logo/512.png"></a> | ||
<a href="https://vercel.com"><img src="https://images.opencollective.com/vercel/d8a5bee/logo/512.png"></a> | ||
</td> | ||
@@ -32,0 +32,0 @@ <td width="33.33%" align="center" colspan="2"> |
114709
3820