Comparing version 2.1.4 to 2.1.5
@@ -17,4 +17,4 @@ 'use strict' | ||
} | ||
const NEWLINE = process.platform === 'win32' ? '\r\n' : '\n' | ||
const FRONTMATTER_SEPERATOR = '---' + NEWLINE | ||
const NEWLINE = '\n' | ||
const FRONTMATTER_SEPERATOR = '---' | ||
@@ -222,6 +222,5 @@ const SOURCE_MODE = 'source' | ||
newContent = | ||
FRONTMATTER_SEPERATOR + | ||
FRONTMATTER_SEPERATOR + NEWLINE + | ||
cleanYaml + | ||
FRONTMATTER_SEPERATOR + | ||
NEWLINE + | ||
FRONTMATTER_SEPERATOR + NEWLINE + NEWLINE + | ||
newContent | ||
@@ -228,0 +227,0 @@ } |
{ | ||
"name": "processmd", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "Process a directory of markdown and yaml files to JSON files", | ||
@@ -14,2 +14,3 @@ "main": "index.js", | ||
"fix-line-endings": "mv cli.js cli.old.js && cat cli.old.js | tr -d '\r' > cli.js", | ||
"fix-eol": "tr -d '\\015' <test/data/input/frontmatter-code.md >test/data/input/frontmatter-code2.md", | ||
"back": "node cli.js \"test/data/output/**/*.json\" --stdout --convertMode source --outputDir test/data/input", | ||
@@ -16,0 +17,0 @@ "test": "jasmine", |
@@ -0,0 +0,0 @@ --- |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
31279
701