We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f92f97 commit a8c3460Copy full SHA for a8c3460
src/loader.js
@@ -5,7 +5,7 @@ const Markdoc = require('@markdoc/markdoc');
5
const DEFAULT_SCHEMA_PATH = './markdoc';
6
7
function normalize(s) {
8
- return s.replace(/\\/g, '\\\\');
+ return s.replace(/\\/g, path.win32.sep.repeat(2));
9
}
10
11
async function gatherPartials(ast, schemaDir) {
@@ -253,7 +253,7 @@ module.exports = async function loader(source) {
253
const result = await load.call(this, source);
254
callback(null, result);
255
} catch (error) {
256
- console.log(error);
+ console.error(error);
257
callback(error);
258
259
};
0 commit comments