micromark-extension-gfm-table
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -53,2 +53,4 @@ /** | ||
let cellStart | ||
/** @type {boolean|undefined} */ | ||
let seenCellInRow | ||
@@ -109,4 +111,4 @@ while (++index < events.length) { | ||
events[index][0] === 'exit' && | ||
cellStart && | ||
cellStart + 1 < index && | ||
cellStart !== undefined && | ||
cellStart + (seenCellInRow ? 0 : 1) < index && | ||
(token.type === 'tableCellDivider' || | ||
@@ -134,2 +136,3 @@ (token.type === 'tableRow' && | ||
cellStart = index + 1 | ||
seenCellInRow = true | ||
} | ||
@@ -142,2 +145,3 @@ | ||
cellStart = index + 1 | ||
seenCellInRow = false | ||
} | ||
@@ -151,2 +155,3 @@ } | ||
cellStart = index + 1 | ||
seenCellInRow = false | ||
} | ||
@@ -153,0 +158,0 @@ } |
@@ -58,3 +58,6 @@ /** | ||
let cellStart | ||
/** @type {boolean|undefined} */ | ||
let seenCellInRow | ||
while (++index < events.length) { | ||
@@ -104,4 +107,4 @@ const token = events[index][1] | ||
events[index][0] === 'exit' && | ||
cellStart && | ||
cellStart + 1 < index && | ||
cellStart !== undefined && | ||
cellStart + (seenCellInRow ? 0 : 1) < index && | ||
(token.type === 'tableCellDivider' || | ||
@@ -129,2 +132,3 @@ (token.type === 'tableRow' && | ||
cellStart = index + 1 | ||
seenCellInRow = true | ||
} | ||
@@ -137,2 +141,3 @@ | ||
cellStart = index + 1 | ||
seenCellInRow = false | ||
} | ||
@@ -146,2 +151,3 @@ } | ||
cellStart = index + 1 | ||
seenCellInRow = false | ||
} | ||
@@ -148,0 +154,0 @@ } |
{ | ||
"name": "micromark-extension-gfm-table", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "micromark extension to support GFM tables", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
47875
1380