Comparing version 0.1.0-alpha.1 to 0.1.0-alpha.2
@@ -31,3 +31,4 @@ var msee = require('./msee'); | ||
try { | ||
var text = msee.parseFile(files[0]); | ||
var file = path.resolve(process.cwd(), files[0]); | ||
var text = msee.parseFile(file); | ||
console.log(text); | ||
@@ -34,0 +35,0 @@ } |
@@ -46,3 +46,3 @@ var fs = require('fs'); | ||
return content + '\n'; | ||
return '\n' + content + '\n\n'; | ||
} | ||
@@ -137,7 +137,9 @@ case 'table': { | ||
var output = []; | ||
var outputArr = []; | ||
var output; | ||
while (next()) { | ||
output.push(processToken()); | ||
outputArr.push(processToken()); | ||
} | ||
output = outputArr.join('').replace(/\n\n\n/g, '\n\n'); | ||
@@ -147,3 +149,3 @@ tokens = null; | ||
return output.join(''); | ||
return output; | ||
} | ||
@@ -150,0 +152,0 @@ |
{ | ||
"name": "msee", | ||
"version": "0.1.0-alpha.1", | ||
"version": "0.1.0-alpha.2", | ||
"description": "Msee is a command-line tool to read markdown file, and it's a library help your command-line software to output readable markdown content.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/msee.js", |
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
6343
199