vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

feat: add print style

Open kecrily opened this issue 3 years ago • 3 comments

close #593 #612

kecrily avatar Jun 08 '22 12:06 kecrily

@kecrily Thanks a lot! Do you know why it doesn't show code block background color? I get this PDF wen printed.

Markdown Extensions _ VitePress.pdf

If this is somekind of printing limitation for saving inks I'm fine but wanted to check in.

kiaking avatar Jun 14 '22 08:06 kiaking

It did not meet expectations and I didn't make changes to this. Is it working properly in print preview? What browser are you using again?

I use Chrome, and this is the pdf I get.

Markdown.pdf


Also in this file I found some components whose styles I did not take into account, such as the collapsed box and the code block that overflows the page. I need to tweak them a bit and check that the background color of this code block is not showing.

kecrily avatar Jun 14 '22 09:06 kecrily

I'm using Chrome too. Strange 🤔 Well it's still readable so not a big deal though.

Also in this file I found some components whose styles I did not take into account, such as the collapsed box and the code block that overflows the page. I need to tweak them a bit and check that the background color of this code block is not showing.

OK gotcha. I'll check once again once this changes arive 👍

kiaking avatar Jun 14 '22 09:06 kiaking

Do you know why it doesn't show code block background color?

You probably have "background graphics" disabled in print settings:

image

brc-dd avatar Dec 30 '22 14:12 brc-dd

Closing due to it's becoming obsolete.

kiaking avatar Jan 20 '23 10:01 kiaking