[build] 4.6.8

This commit is contained in:
qingwei.li 2018-03-06 11:58:40 +08:00
commit 4c91fbc7cb
5 changed files with 11 additions and 7 deletions

View file

@ -3015,7 +3015,11 @@ Compiler.prototype.compileEmbed = function compileEmbed (href, title) {
if (config.include) {
if (!isAbsolutePath(href)) {
href = getPath(this.contentBase, href);
href = getPath(
this.contentBase,
getParentPath(this.router.getCurrentPath()),
href
);
}
var media;
@ -3168,7 +3172,7 @@ Compiler.prototype._initRenderer = function _initRenderer () {
}
if (!isAbsolutePath(href)) {
url = getPath(contentBase, href);
url = getPath(contentBase, getParentPath(router.getCurrentPath()), href);
}
return ("<img src=\"" + url + "\"data-origin=\"" + href + "\" alt=\"" + text + "\"" + attrs + ">")
@ -4569,7 +4573,7 @@ initGlobalAPI();
/**
* Version
*/
Docsify.version = '4.6.7';
Docsify.version = '4.6.8';
/**
* Run Docsify