Skip to content

Commit 36ad00d

Browse files
committed
Ensure that cell id makes it through pandoc rendering
1 parent 28b882d commit 36ad00d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/jupyter/jupyter.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,11 @@ async function mdFromCodeCell(
10961096
// write div enclosure
10971097
const divMd: string[] = [`::: {`];
10981098

1099+
// add the id
1100+
if (cell.id) {
1101+
divMd.push(`#${cell.id} `);
1102+
}
1103+
10991104
// metadata to exclude from cell div attributes
11001105
const kCellOptionsFilter = kJupyterCellInternalOptionKeys.concat(
11011106
kJupyterCellStandardMetadataKeys,

0 commit comments

Comments
 (0)