New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

remove-markdown

Package Overview
Dependencies
Maintainers
1
Versions
16
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.0.2 to 0.0.4

4

index.js

@@ -17,7 +17,7 @@ module.exports = function(md, options) {

.replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g, '')
.replace(/^\#{1,6}\s*/g, '')
.replace(/^\#{1,6}\s*([^#]*)\s*(\#{1,6})?/g, '$1')
.replace(/([\*_]{1,2})(\S.*?\S)\1/g, '$2')
.replace(/(`{3,})(.*?)\1/gm, '$2')
.replace(/^-{3,}\s*$/g, '')
.replace(/`(.+)`/g, '$1')
.replace(/`(.+?)`/g, '$1')
.replace(/\n{2,}/g, '\n\n');

@@ -24,0 +24,0 @@ } catch(e) {

{
"name": "remove-markdown",
"version": "0.0.2",
"version": "0.0.4",
"description": "Remove Markdown formatting from text",

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

@@ -1,7 +0,9 @@

## This is a heading
## This is a heading ##
This is a paragraph with [a link](http://www.disney.com/).
In `Getting Started` we set up `something` foo.
* Some list
* With items
* Even indented

@@ -1,7 +0,9 @@

This is a heading
This is a heading
This is a paragraph with a link.
In Getting Started we set up something foo.
Some list
With items
Even indented
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