remark-lint
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -5,2 +5,8 @@ <!--remark setext--> | ||
3.2.1 / 2016-04-26 | ||
================== | ||
* Fix incorrect error in `no-heading-content-indent` ([`1f2e9a8`](https://github.com/wooorm/remark-lint/commit/1f2e9a8)) | ||
* Fix CRLF line-endings in `hard-break-spaces` ([`31f5069`](https://github.com/wooorm/remark-lint/commit/31f5069)) | ||
3.2.0 / 2016-04-04 | ||
@@ -7,0 +13,0 @@ ================== |
@@ -52,3 +52,3 @@ /** | ||
value = contents.slice(start, end).split('\n', 1)[0]; | ||
value = contents.slice(start, end).split('\n', 1)[0].replace(/\r$/, ''); | ||
@@ -55,0 +55,0 @@ if (value.length > 2) { |
@@ -62,2 +62,3 @@ /** | ||
var type = style(node, 'atx'); | ||
var head; | ||
var initial; | ||
@@ -82,4 +83,14 @@ var final; | ||
index = depth + (index - initial.offset); | ||
diff = start(children[0]).column - initial.column - 1 - index; | ||
head = start(children[0]).column; | ||
/* | ||
* Ignore empty headings. | ||
*/ | ||
if (!head) { | ||
return; | ||
} | ||
diff = head - initial.column - 1 - index; | ||
if (diff) { | ||
@@ -86,0 +97,0 @@ word = diff > 0 ? 'Remove' : 'Add'; |
{ | ||
"name": "remark-lint", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Lint markdown with remark", | ||
@@ -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
142866
4667