rehype-minify-language
Advanced tools
Comparing version 3.0.0 to 3.0.1
export { default } from "./lib/index.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -8,2 +8,3 @@ /** | ||
export default function rehypeMinifyLanguage(): (tree: Root) => undefined; | ||
export type Root = import('hast').Root; | ||
import type { Root } from 'hast'; | ||
//# sourceMappingURL=index.d.ts.map |
/** | ||
* @typedef {import('hast').Root} Root | ||
* @import {Root} from 'hast' | ||
*/ | ||
@@ -28,4 +28,4 @@ | ||
while (++index < fields.length) { | ||
const prop = fields[index] | ||
const value = node.properties[prop] | ||
const property = fields[index] | ||
const value = node.properties[property] | ||
@@ -35,3 +35,5 @@ if (typeof value === 'string') { | ||
// lowercase which *should* help GZIP. | ||
node.properties[prop] = (bcp47Normalize(value) || value).toLowerCase() | ||
node.properties[property] = ( | ||
bcp47Normalize(value) || value | ||
).toLowerCase() | ||
} | ||
@@ -38,0 +40,0 @@ } |
{ | ||
"name": "rehype-minify-language", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "rehype plugin to minify language attributes", | ||
@@ -34,2 +34,3 @@ "license": "MIT", | ||
"index.d.ts", | ||
"index.d.ts.map", | ||
"index.js", | ||
@@ -50,3 +51,8 @@ "lib/" | ||
}, | ||
"xo": false | ||
"xo": { | ||
"prettier": true, | ||
"rules": { | ||
"capitalized-comments": "off" | ||
} | ||
} | ||
} |
@@ -17,16 +17,16 @@ <!--This file is generated--> | ||
* [What is this?](#what-is-this) | ||
* [When should I use this?](#when-should-i-use-this) | ||
* [Install](#install) | ||
* [Use](#use) | ||
* [API](#api) | ||
* [`unified().use(rehypeMinifyLanguage)`](#unifieduserehypeminifylanguage) | ||
* [Example](#example) | ||
* [Syntax](#syntax) | ||
* [Syntax tree](#syntax-tree) | ||
* [Types](#types) | ||
* [Compatibility](#compatibility) | ||
* [Security](#security) | ||
* [Contribute](#contribute) | ||
* [License](#license) | ||
* [What is this?](#what-is-this) | ||
* [When should I use this?](#when-should-i-use-this) | ||
* [Install](#install) | ||
* [Use](#use) | ||
* [API](#api) | ||
* [`unified().use(rehypeMinifyLanguage)`](#unifieduserehypeminifylanguage) | ||
* [Example](#example) | ||
* [Syntax](#syntax) | ||
* [Syntax tree](#syntax-tree) | ||
* [Types](#types) | ||
* [Compatibility](#compatibility) | ||
* [Security](#security) | ||
* [Contribute](#contribute) | ||
* [License](#license) | ||
@@ -33,0 +33,0 @@ ## What is this? |
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
10285
9
75