More Windows compatibility.
This commit is contained in:
parent
00487fb49a
commit
2d6702cbad
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -2,6 +2,7 @@
|
|||||||
* text=auto
|
* text=auto
|
||||||
|
|
||||||
builds/* -text
|
builds/* -text
|
||||||
|
index.html -text
|
||||||
|
|
||||||
# Custom for Visual Studio
|
# Custom for Visual Studio
|
||||||
*.cs diff=csharp
|
*.cs diff=csharp
|
||||||
|
|||||||
@ -6,4 +6,5 @@ var md = fs.readFileSync('README.md', 'utf8');
|
|||||||
var content = marked(md);
|
var content = marked(md);
|
||||||
var template = fs.readFileSync('template.jst', 'utf8');
|
var template = fs.readFileSync('template.jst', 'utf8');
|
||||||
var output = _.template(template)({content: content});
|
var output = _.template(template)({content: content});
|
||||||
|
output = output.replace(/\r\n/g, '\n');
|
||||||
fs.writeFileSync('test.html', output);
|
fs.writeFileSync('test.html', output);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user