Skip to content

Commit 7c40a6a

Browse files
authoredJul 17, 2018
Merge pull request #16 from martinvehmas/master
Use the right separator in file path.
2 parents a67fed1 + 491edbb commit 7c40a6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎lib/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ var basename = require('path').basename;
33
var debug = require('debug')('metalsmith-markdown');
44
var dirname = require('path').dirname;
55
var extname = require('path').extname;
6+
var join = require('path').join;
67
var marked = require('marked');
78

89

@@ -33,7 +34,7 @@ function plugin(options){
3334
var data = files[file];
3435
var dir = dirname(file);
3536
var html = basename(file, extname(file)) + '.html';
36-
if ('.' != dir) html = dir + '/' + html;
37+
if ('.' != dir) html = join(dir, html);
3738

3839
debug('converting file: %s', file);
3940
var str = marked(data.contents.toString(), options);

0 commit comments

Comments
 (0)
Please sign in to comment.