Comparing version 1.2.1 to 1.2.2
@@ -22,4 +22,4 @@ 'use strict'; | ||
// convert line break into html line break | ||
[/\n/g, '<br />']].reduce(function (input, _ref) { | ||
// convert line break into markdown hardbrake | ||
[/\n/g, ' \n']].reduce(function (input, _ref) { | ||
var _ref2 = _slicedToArray(_ref, 2); | ||
@@ -26,0 +26,0 @@ |
@@ -11,4 +11,4 @@ function escapeMarkdownPart(input) { | ||
// convert line break into html line break | ||
[/\n/g, '<br />'] | ||
// convert line break into markdown hardbrake | ||
[/\n/g, ' \n'] | ||
@@ -15,0 +15,0 @@ ].reduce((input, [replaceFrom, replaceTo]) => input.replace(replaceFrom, replaceTo), input); |
{ | ||
"name": "tweet.md", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Render tweet to markdown", | ||
@@ -9,5 +9,7 @@ "main": "index.es5.js", | ||
"examples": "babel-node examples.js", | ||
"test": "mocha -r babel/register", | ||
"preversion": "npm run examples", | ||
"prepublish": "npm run test && npm run transpile && npm run examples" | ||
"prepublish": "npm run test && npm run transpile && npm run examples", | ||
"coverage": "rm -rf coverage/ && babel-node ./node_modules/.bin/isparta cover _mocha --report lcovonly -- -r babel/register test/*.js", | ||
"test": "mocha -r babel/register test/*.js", | ||
"travis": "npm run coverage && cat coverage/lcov.info | coveralls" | ||
}, | ||
@@ -29,4 +31,6 @@ "keywords": [ | ||
"babel": "^5.8.21", | ||
"coveralls": "^2.11.4", | ||
"isparta": "^3.0.3", | ||
"mocha": "^2.2.5" | ||
} | ||
} |
@@ -5,2 +5,3 @@ # Tweet markdown renderer | ||
[![Travis](https://img.shields.io/travis/silentroach/tweet.md.svg?style=flat-square&label=travis)](https://travis-ci.org/silentroach/tweet.md) | ||
[![Coveralls](https://img.shields.io/coveralls/silentroach/tweet.md.svg?style=flat-square&label=coverage)](https://coveralls.io/r/silentroach/tweet.md) | ||
[![David](https://img.shields.io/david/dev/silentroach/tweet.md.svg?style=flat-square&label=deps)](https://david-dm.org/silentroach/tweet.md#info=devDependencies) | ||
@@ -44,3 +45,7 @@ | ||
- - - | ||
Tweet poems you like<br />at [#TwitterPoetryClub](https://twitter.com/search?q=%23TwitterPoetryClub)<br />prose, sonnets and more<br /><br />Via [@bustle](https://twitter.com/bustle "Bustle"), learn how to wax poetic on Twitter: [bustle.com/articles/10068…](http://t.co/vItyyGqX7R "http://www.bustle.com/articles/100683-twitterpoetryclub-members-share-their-love-of-poetry-in-140-characters-or-less") | ||
Tweet poems you like | ||
at [#TwitterPoetryClub](https://twitter.com/search?q=%23TwitterPoetryClub) | ||
prose, sonnets and more | ||
Via [@bustle](https://twitter.com/bustle "Bustle"), learn how to wax poetic on Twitter: [bustle.com/articles/10068…](http://t.co/vItyyGqX7R "http://www.bustle.com/articles/100683-twitterpoetryclub-members-share-their-love-of-poetry-in-140-characters-or-less") | ||
- - - | ||
@@ -47,0 +52,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
9798
59
4