From b44527804c90099d5cfde7825f6cf81d12104f7f Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 26 Jan 2016 19:48:20 -0500 Subject: [PATCH] ability to parse paragraphs --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2c7b66f..306d1aa 100755 --- a/index.js +++ b/index.js @@ -31,7 +31,9 @@ module.exports = function(input){ if(lines[ i + 1 ] === '' && (i === 0 || lines[ i - 1 ] === '')){ html += popHTMLStack(-1, previous_line_num_tabs); previous_line_num_tabs = -1; - if( i > 0 ) { + if(lines[i].indexOf('.') > 0){ + html += '

' + lines[i] + '

\n'; + } else if( i > 0 ) { html += '

' + lines[i] + '

\n'; } else { html += '

' + lines[i] + '

\n';