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

remove-markdown

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remove-markdown - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

8

index.js

@@ -52,3 +52,3 @@ module.exports = function(md, options) {

joinedHtmlTagsToSkip +
'[^>]*>',
'[^>]*>',
'ig'

@@ -79,4 +79,6 @@ );

.replace(/([\*]+)(\S)(.*?\S)??\1/g, '$2$3')
// Remove _ emphasis
.replace(/(_+)(.*?\S)(_+)/g, '$1$3$4$5')
// Remove _ emphasis. Unlike *, _ emphasis gets rendered only if
// 1. Either there is a whitespace character before opening _ and after closing _.
// 2. Or _ is at the start/end of the string.
.replace(/(^|\W)([_]+)(\S)(.*?\S)??\2($|\W)/g, '$1$3$4$5')
// Remove code blocks

@@ -83,0 +85,0 @@ .replace(/(`{3,})(.*?)\1/gm, '$2')

{
"name": "remove-markdown",
"version": "0.5.4",
"version": "0.5.5",
"description": "Remove Markdown formatting from text",

@@ -5,0 +5,0 @@ "main": "index.js",

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