Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeSurfer is not print-friendly #55

Open
vlsi opened this issue Apr 13, 2019 · 2 comments
Open

CodeSurfer is not print-friendly #55

vlsi opened this issue Apr 13, 2019 · 2 comments

Comments

@vlsi
Copy link

vlsi commented Apr 13, 2019

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.

@Relequestual
Copy link

It also does not work for code with multiple steps.

@Morozzzko
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants