diff --git a/examples/index.js b/examples/index.js
index fde44b5..26aeb14 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -33,4 +33,4 @@ var html = `
Some italic
`
-console.log(converter.convert(html))
\ No newline at end of file
+console.log(converter.convert(html))
diff --git a/src/formatters.js b/src/formatters.js
index 4bb055d..4b3e361 100644
--- a/src/formatters.js
+++ b/src/formatters.js
@@ -17,7 +17,7 @@ var boldRegex = /<(?:b|strong)>([\s\S]*?)<\/\w*>/gim
var italicRegex = /<(?:i|em)>([\s\S]*?)<\/\w*>/gim
/**
- * @description executes a regex to replace matched text with
+ * @description executes a regex to replace matched text with
* selected group with optional pre and postfix
* @method makeRegex
* @param {String} regex [description]
@@ -37,7 +37,7 @@ function makeRegex (regex, doc, before, after, replaceFn) {
if(replaceFn && typeof(replaceFn) === 'function'){
replaceText = replaceFn(matches)
}
- replaceString += replaceText;
+ replaceString += replaceText + "\n";
replaceString += after || '';
newDoc = newDoc.replace(matches[0],replaceString);
}
diff --git a/src/index.js b/src/index.js
index 10cc488..a65c9dd 100644
--- a/src/index.js
+++ b/src/index.js
@@ -37,7 +37,7 @@ module.exports = {
* replacing unncessary html tags
* @type {String}
*/
- html = replaceExtras(html);
+ html = replaceExtras(html);
/**
* looping through registered formatters
@@ -60,4 +60,4 @@ module.exports = {
use: function (formatter) {
formatters.push(formatter)
}
-}
\ No newline at end of file
+}