Comparing version 0.3.3 to 0.3.4
@@ -6,3 +6,3 @@ { | ||
"homepage" : "https://github.com/millermedeiros/mdoc.git", | ||
"version" : "0.3.3", | ||
"version" : "0.3.4", | ||
"author" : { | ||
@@ -9,0 +9,0 @@ "name" : "Miller Medeiros", |
@@ -85,3 +85,3 @@ | ||
var parseResult = parser.parseDoc(content, config.headingLevel), | ||
fileName = fileInfo.output.replace(config.outputDir, '').replace(/^\//, ''), | ||
fileName = fileInfo.output.replace(config.outputDir, '').replace(/^[\/\\]/, ''), | ||
moduleName = config.mapTocName? config.mapTocName(fileName, parseResult.toc) : fileName.replace('.html', ''); | ||
@@ -95,3 +95,3 @@ | ||
var relativeRoot = path.relative( fileInfo.output.replace(/\/[^\/]+$/, '/'), config.outputDir ); | ||
var relativeRoot = path.relative( fileInfo.output.replace(/[\/\\][^\/\\]+$/, '/'), config.outputDir ); | ||
@@ -98,0 +98,0 @@ return _docTemplate({ |
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
279296
144