File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -655,8 +655,6 @@ function findTitle(cells: JupyterCellOutput[]) {
655655 if ( partitioned . yaml ?. title ) {
656656 return partitioned . yaml . title as string ;
657657 } else if ( partitioned . headingText ) {
658- // Fence-aware heading detection means a fenced code comment that
659- // looks like a heading never reaches here as headingText.
660658 return partitioned . headingText ;
661659 }
662660 }
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export function partitionMarkdown(markdown: string): PartitionedMarkdown {
6363 ) ;
6464
6565 return {
66- yaml : ( partitioned ? readYamlFromMarkdown ( partitioned . yaml ) : undefined ) ,
66+ yaml : partitioned ? readYamlFromMarkdown ( partitioned . yaml ) : undefined ,
6767 headingText,
6868 headingAttr,
6969 containsRefs,
@@ -133,8 +133,6 @@ export function markdownWithExtractedHeading(markdown: string) {
133133 lines : mdLines ,
134134 headingText,
135135 headingAttr,
136- // Consumed only by fixupFrontMatter's direct call to this function;
137- // partitionMarkdown intentionally does not forward it (see PartitionedMarkdown).
138136 contentBeforeHeading,
139137 } ;
140138}
You can’t perform that action at this time.
0 commit comments