Skip to content

Commit 6358728

Browse files
committed
use foward slashes for jupyter figures dir
1 parent 13ee474 commit 6358728

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/core/jupyter/jupyter.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ import { figuresDir, inputFilesDir } from "../render.ts";
143143
import { lines } from "../text.ts";
144144
import { readYamlFromMarkdown } from "../yaml.ts";
145145
import { languagesInMarkdown } from "../../execute/engine-shared.ts";
146+
import { pathWithForwardSlashes } from "../path.ts";
146147

147148
export const kJupyterNotebookExtensions = [
148149
".ipynb",
@@ -574,9 +575,9 @@ export function jupyterAssets(input: string, to?: string) {
574575
const base_dir = dirname(input);
575576
return {
576577
base_dir,
577-
files_dir: relative(base_dir, files_dir),
578-
figures_dir: relative(base_dir, figures_dir),
579-
supporting_dir: relative(base_dir, supporting_dir),
578+
files_dir: pathWithForwardSlashes(relative(base_dir, files_dir)),
579+
figures_dir: pathWithForwardSlashes(relative(base_dir, figures_dir)),
580+
supporting_dir: pathWithForwardSlashes(relative(base_dir, supporting_dir)),
580581
};
581582
}
582583

0 commit comments

Comments
 (0)