Skip to content

Commit 9f346a1

Browse files
committed
don't use ids for cell labels
1 parent 2a37d1e commit 9f346a1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/core/jupyter/labels.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ import {
1818
import { includeOutput } from "./tags.ts";
1919

2020
export function cellLabel(cell: JupyterCellWithOptions) {
21-
// ensure id starts with a letter
22-
const id = cell.id ? `cell-id-${cell.id}` : "";
23-
24-
const label =
25-
(cell.options[kCellLabel] || cell.metadata[kCellName] || id || "");
21+
const label = (cell.options[kCellLabel] || cell.metadata[kCellName] || "");
2622

2723
if (label && !label.startsWith("#")) {
2824
return "#" + label;

0 commit comments

Comments
 (0)