File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -88,12 +88,18 @@ export function httpFileRequestHandler(
8888 : { print : true , response : { body : encoder . encode ( "Not Found" ) } } ;
8989
9090 // Ignore 404s from specific files
91- const ignoreFileNames = [ "favicon.ico" , "listings.json" ] ;
91+ const ignoreFileNames = [
92+ "favicon.ico" ,
93+ "listings.json" ,
94+ / j u p y t e r - .* .j s / ,
95+ ] ;
9296
9397 handle404 . print = handle404 . print &&
9498 ! ! options . printUrls &&
9599 ( ! fsPath || (
96- ! ignoreFileNames . includes ( basename ( fsPath ) ) &&
100+ ! ignoreFileNames . find ( ( name ) => {
101+ return basename ( fsPath ) . match ( name ) ;
102+ } ) &&
97103 extname ( fsPath ) !== ".map"
98104 ) ) ;
99105 if ( handle404 . print ) {
Original file line number Diff line number Diff line change @@ -185,6 +185,8 @@ async function notebookMarkdown(
185185 options ,
186186 ) ;
187187
188+ // Wrap any injected cells with a div that includes a back link to
189+ // the notebook that originated the cells
188190 const notebookMarkdown = ( cells : JupyterCellOutput [ ] ) => {
189191 const markdown = [ "" , `:::{notebook="${ nbAddress . path } "}` ] ;
190192 markdown . push ( "" ) ;
You can’t perform that action at this time.
0 commit comments