UNPKG

bisheng

Version:

Transform Markdown(and other static files with transformers) into a SPA website using React.

16 lines (13 loc) 385 B
"use strict"; // require('D:\ant-design') will throw a module not found error need to escape `\` to `\\`. // Note that this is only required when you persist code to file function escapeWinPath(path) { return path.replace(/\\/g, '\\\\'); } function toUriPath(path) { return path.replace(/\\/g, '/'); } module.exports = { escapeWinPath: escapeWinPath, toUriPath: toUriPath };