diff --git a/lib/plugins/tag/include_code.js b/lib/plugins/tag/include_code.js index 59e4436a16..a7cd9f6c3a 100644 --- a/lib/plugins/tag/include_code.js +++ b/lib/plugins/tag/include_code.js @@ -1,7 +1,7 @@ 'use strict'; const { exists, readFile } = require('hexo-fs'); -const { basename, extname, join } = require('path'); +const { basename, extname, join, posix } = require('path'); // Lazy require highlight.js & prismjs let highlight, prismHighlight; @@ -55,7 +55,7 @@ module.exports = ctx => function includeCodeTag(args) { // If the title is not defined, use file name instead const title = match[1] || basename(path); - const caption = `${title}view raw`; + const caption = `${title}view raw`; const hljsCfg = ctx.config.highlight || {}; const prismjsCfg = ctx.config.prismjs || {};