Skip to content

Commit 87026e6

Browse files
committed
chore: add comments
1 parent b648de0 commit 87026e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PdfRenderer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ function renderParagraph(tokens: Token[], renderState: RenderState) {
200200
// });
201201
// }
202202

203+
// todo: apply style https://prismjs.com/themes/prism-okaidia.css
203204
function renderCode(code: string, infostring: string | undefined, escaped: boolean, renderState: RenderState): void {
204205
const prevFont = renderState.doc.getFont();
205206
const prevFontSize = renderState.doc.getFontSize();
@@ -244,8 +245,11 @@ function renderCode(code: string, infostring: string | undefined, escaped: boole
244245
leftPadding: 5,
245246
rightPadding: 5
246247
}, rects)
248+
} else {
249+
// todo: If not exists
247250
}
248251

252+
renderState.y += 10;
249253
renderState.doc.setFont(prevFont.fontName, prevFont.fontStyle);
250254
renderState.doc.setFontSize(prevFontSize);
251255
}

0 commit comments

Comments
 (0)