Comparing version 2.53.0 to 2.53.1
@@ -545,5 +545,5 @@ const url = require('url'); | ||
}, | ||
permalinkHeaders: function(html, icon = 'fa-bookmark') { | ||
permalinkHeaders: function(html, icon = 'fa-link') { | ||
// $0 - whole match, $1 - opening tag and content, $2 - opening tag name (to match the end tag), $3 - value of id attr, $4 - closing tag | ||
return html.replace(/(<(h\d)\s+id="([^"]+)">.+?)(<\/\2>)/gs,`$1<a class="permalink" href="#$3" title="Link to this section"><i class="fa ${icon}"></i></a>$4`); | ||
return html.replace(/(<(h\d)\s+id="([^"]+)">.+?)(<\/\2>)/gs,`$1<a class="permalink" href="#$3" title="Link"><i class="fa ${icon}"></i></a>$4`); | ||
}, | ||
@@ -550,0 +550,0 @@ removeAttribute: function(html, attribute) { |
@@ -36,3 +36,3 @@ { | ||
}, | ||
"version": "2.53.0" | ||
"version": "2.53.1" | ||
} |
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
1528412