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

Fix issues on Windows #8

Merged
merged 2 commits into from May 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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