Skip to content

Commit 9b41cc9

Browse files
committed
Cleanup
1 parent 161c67c commit 9b41cc9

File tree

4 files changed

+168
-153
lines changed

4 files changed

+168
-153
lines changed

src/command/render/render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import {
5050
withTimingAsync,
5151
} from "../../core/timing.ts";
5252
import { filesDirMediabagDir } from "./render-paths.ts";
53-
import { replaceNotebookPlaceholders } from "../../core/handlers/include-notebook.ts";
53+
import { replaceNotebookPlaceholders } from "../../core/jupyter/jupyter-embed.ts";
5454

5555
export async function renderPandoc(
5656
file: ExecutedFile,

src/core/handlers/embed.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ import {
1414
} from "../lib/mapped-text.ts";
1515

1616
import { DirectiveCell } from "../lib/break-quarto-md-types.ts";
17-
1817
import {
1918
notebookMarkdownPlaceholder,
20-
parseNotebookPath,
21-
} from "./include-notebook.ts";
19+
parseNotebookAddress,
20+
} from "../jupyter/jupyter-embed.ts";
2221

2322
interface EmbedHandler {
2423
name: string;
@@ -40,7 +39,7 @@ const kHandlers: EmbedHandler[] = [
4039
// Resolve the filename into a path
4140
const path = handlerContext.resolvePath(filename);
4241

43-
const notebookAddress = parseNotebookPath(path);
42+
const notebookAddress = parseNotebookAddress(path);
4443
if (notebookAddress) {
4544
const placeHolder = notebookMarkdownPlaceholder(path, {
4645
echo: false,

src/core/handlers/include.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ import {
1818
import { rangedLines } from "../lib/ranged-text.ts";
1919
import { isBlockShortcode } from "../lib/parse-shortcode.ts";
2020
import { DirectiveCell } from "../lib/break-quarto-md-types.ts";
21-
2221
import {
2322
notebookMarkdownPlaceholder,
24-
parseNotebookPath,
25-
} from "./include-notebook.ts";
23+
parseNotebookAddress,
24+
} from "../jupyter/jupyter-embed.ts";
2625

2726
const includeHandler: LanguageHandler = {
2827
...baseHandler,
@@ -50,7 +49,7 @@ const includeHandler: LanguageHandler = {
5049
);
5150
}
5251

53-
const notebookAddress = parseNotebookPath(path);
52+
const notebookAddress = parseNotebookAddress(path);
5453
if (notebookAddress) {
5554
const placeHolder = notebookMarkdownPlaceholder(path, {});
5655
textFragments.push(placeHolder);

0 commit comments

Comments
 (0)