remove-markdown
Advanced tools
Comparing version 0.0.2 to 0.0.4
@@ -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 |
4843