Skip to content

Commit 9d9284a

Browse files
committed
Remove unnecessary comments
1 parent 5e4158b commit 9d9284a

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

src/core/jupyter/jupyter-embed.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/core/pandoc/pandoc-partition.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)