code-surfer
code-surfer copied to clipboard
CodeSurfer is not print-friendly
I try to produce a pdf version of my mdx-deck
slides, and it looks like CodeSurfer does not quite work for that.
I add the following to theme to ensure 16:9 aspect ratio for the PDF:
css: {
'@page': {
size: '1920px 1080px',
margin: 0,
}
}
Unfortunately the scale computation seems to be off for some reason, so the code in pdf looks either too small or artificial margins appear or whatever.
The issue is more-or-less reproducible with default sample
fixture if @page: {size:...}
is added.
It also does not work for code with multiple steps.
Not being able to work for code with multiple steps is a problem, definitely.
Would be nice if someone explained where to get started. Perhaps, someone could contribute