rehype-ignore
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -15,3 +15,3 @@ import { visit } from 'unist-util-visit'; | ||
if (item.type === 'raw' || item.type === 'comment') { | ||
let str = item.value?.trim(); | ||
let str = (item.value || '').trim(); | ||
str = str.replace(/^<!--(.*?)-->/, '$1'); | ||
@@ -18,0 +18,0 @@ if (str === openDelimiter) { |
{ | ||
"name": "rehype-ignore", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Ignore content display via HTML comments, Shown in GitHub readme, excluded in HTML.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://jaywcjlove.github.io/rehype-ignore", |
@@ -29,3 +29,3 @@ import { Plugin } from 'unified'; | ||
if (item.type === 'raw' || item.type === 'comment') { | ||
let str = item.value?.trim(); | ||
let str = (item.value || '').trim(); | ||
str = str.replace(/^<!--(.*?)-->/, '$1') | ||
@@ -32,0 +32,0 @@ if (str === openDelimiter) { |
Sorry, the diff of this file is not supported yet
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
14903