Skip to content

Commit d2a1ee2

Browse files
committed
fix maxBacktick calculation in quarto convert
1 parent 3965f49 commit d2a1ee2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/command/convert/jupyter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ async function mdFromCodeCell(
147147
// determine the largest number of backticks in the cell
148148
const maxBackticks = Math.max(
149149
...cell.source.map((line) => line.match(/^`+/g)?.[0].length || 0),
150+
2,
150151
);
151152
const backticks = "`".repeat(maxBackticks + 1);
152153

0 commit comments

Comments
 (0)