vscode-markdown-pdf icon indicating copy to clipboard operation
vscode-markdown-pdf copied to clipboard

Way to create page borders?

Open gursuj opened this issue 3 years ago • 0 comments

Has anyone found a reliable way to create page borders? I set this style in markdown-pdf.css

.page {
	height: 27.7cm;  /*dimensions are for A4 - 1 cm margin on all sides */
	width: 19cm;
	page-break-after: always;
	border: 2px solid #000;
}

However, the headings are rendered outside the borders even if they are contained within the div with the page class. The "Basic Theory" line appears inside the text because there isn't an empty line after the <div> & markdown thinks it's normal text.

      image       image

gursuj avatar Sep 05 '22 06:09 gursuj