code-surfer icon indicating copy to clipboard operation
code-surfer copied to clipboard

CodeSurfer is not print-friendly

Open vlsi opened this issue 5 years ago • 2 comments

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.

vlsi avatar Apr 13 '19 21:04 vlsi

It also does not work for code with multiple steps.

Relequestual avatar Aug 10 '19 09:08 Relequestual

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

Morozzzko avatar Apr 02 '20 22:04 Morozzzko