Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8 from altano/master
Browse files Browse the repository at this point in the history
Fix issues on Windows
  • Loading branch information
mayo committed May 30, 2016
2 parents ffd67f6 + 441bd87 commit 947dec3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
test/fixtures/** text eol=lf
3 changes: 2 additions & 1 deletion lib/index.js
Expand Up @@ -3,6 +3,7 @@ var basename = require('path').basename;
var debug = require('debug')('metalsmith-markdown');
var dirname = require('path').dirname;
var extname = require('path').extname;
var join = require('path').join;
var markdownIt = require('markdown-it');

/**
Expand Down Expand Up @@ -30,7 +31,7 @@ function plugin(preset, options){
var data = files[file];
var dir = dirname(file);
var html = basename(file, extname(file)) + '.html';
if ('.' != dir) html = dir + '/' + html;
if ('.' != dir) html = join(dir, html);

debug('converting file: %s', file);
var env = {};
Expand Down

0 comments on commit 947dec3

Please sign in to comment.