File tree Expand file tree Collapse file tree 4 files changed +168
-153
lines changed
Expand file tree Collapse file tree 4 files changed +168
-153
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ import {
5050 withTimingAsync ,
5151} from "../../core/timing.ts" ;
5252import { filesDirMediabagDir } from "./render-paths.ts" ;
53- import { replaceNotebookPlaceholders } from "../../core/handlers/include-notebook .ts" ;
53+ import { replaceNotebookPlaceholders } from "../../core/jupyter/jupyter-embed .ts" ;
5454
5555export async function renderPandoc (
5656 file : ExecutedFile ,
Original file line number Diff line number Diff line change @@ -14,11 +14,10 @@ import {
1414} from "../lib/mapped-text.ts" ;
1515
1616import { DirectiveCell } from "../lib/break-quarto-md-types.ts" ;
17-
1817import {
1918 notebookMarkdownPlaceholder ,
20- parseNotebookPath ,
21- } from "./include-notebook .ts" ;
19+ parseNotebookAddress ,
20+ } from "../jupyter/jupyter-embed .ts" ;
2221
2322interface 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 ,
Original file line number Diff line number Diff line change @@ -18,11 +18,10 @@ import {
1818import { rangedLines } from "../lib/ranged-text.ts" ;
1919import { isBlockShortcode } from "../lib/parse-shortcode.ts" ;
2020import { DirectiveCell } from "../lib/break-quarto-md-types.ts" ;
21-
2221import {
2322 notebookMarkdownPlaceholder ,
24- parseNotebookPath ,
25- } from "./include-notebook .ts" ;
23+ parseNotebookAddress ,
24+ } from "../jupyter/jupyter-embed .ts" ;
2625
2726const 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 ) ;
You can’t perform that action at this time.
0 commit comments