remark-frontmatter
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -12,5 +12,6 @@ 'use strict' | ||
var newline = '\n' | ||
var anywhere = matter.anywhere | ||
frontmatter.displayName = name | ||
frontmatter.onlyAtStart = true | ||
frontmatter.onlyAtStart = typeof anywhere === 'boolean' ? !anywhere : true | ||
@@ -17,0 +18,0 @@ return [name, frontmatter] |
{ | ||
"name": "remark-frontmatter", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Frontmatter (yaml, toml, and more) support for remark", | ||
@@ -32,3 +32,3 @@ "license": "MIT", | ||
"not": "^0.1.0", | ||
"nyc": "^12.0.0", | ||
"nyc": "^13.0.0", | ||
"prettier": "^1.14.2", | ||
@@ -42,3 +42,3 @@ "remark": "^9.0.0", | ||
"unified": "^7.0.0", | ||
"xo": "^0.22.0" | ||
"xo": "^0.23.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "scripts": { |
@@ -110,2 +110,5 @@ # remark-frontmatter [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status] [![Chat][chat-badge]][chat] | ||
used too if fences contain different characters or lengths other than 3 | ||
* `anywhere` (`boolean`, default: `false`) – if `true`, matter can be | ||
found anywhere in the document. If `false` (default), only matter at the | ||
start of the document is recognised. | ||
@@ -223,3 +226,3 @@ ###### Example | ||
[license]: LICENSE | ||
[license]: license | ||
@@ -226,0 +229,0 @@ [author]: http://wooorm.com |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13109
150
254
0