mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-04 12:31:32 +00:00
Fix for good path resolution of svg image
This commit is contained in:
+2
-2
@@ -97,7 +97,7 @@ function normalizeHtml(src, options) {
|
||||
|
||||
// Replace extension
|
||||
if (isExternal) {
|
||||
dest = path.basename(src, ext)+".png";
|
||||
dest = path.basename(srcAbs, ext)+".png";
|
||||
} else {
|
||||
dest = path.join(path.dirname(srcAbs), path.basename(srcAbs, ext)+".png");
|
||||
dest = dest[0] == "/"? dest.slice(1) : dest;
|
||||
@@ -123,7 +123,7 @@ function normalizeHtml(src, options) {
|
||||
dest: path.join("./", dest)
|
||||
});
|
||||
|
||||
src = dest;
|
||||
src = path.join("/", dest);
|
||||
}
|
||||
|
||||
// Reset as relative to output
|
||||
|
||||
Reference in New Issue
Block a user