Snippet @ Markdown

Hello,

I’m used to include some snippets into websites.

But if I try to print a page that includes a snippet, the result is poor : line numbers are displayed before code, gitlab logo’s size is too big…

After analysing the snippet generated html code inserted into my page, I’ve noticed the first line :

document.write('<link rel=\"stylesheet\" media=\"screen\" ...

The css rules for the snippet code only run for “screen” media, and ignored for “print” one…

How can I have a correct print of my html page that contains a gitlab snippet…

To reproduce the problem :

  • Follow this link
  • try to print the page to PDF

Thank for your help !