Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mehdown

Package Overview
Dependencies
Maintainers
6
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mehdown - npm Package Compare versions

Comparing version 2.53.0 to 2.53.1

4

lib/index.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc