hackmdio/codimd

Remove URLs next to links when export to PDF using browser built-in print

Open

#535 aberto em 27 de ago. de 2017

Ver no GitHub
 (15 comments) (2 reactions) (0 assignees)JavaScript (1.038 forks)batch import
Hacktoberfestdocsenhancementimport/exportminor

Métricas do repositório

Stars
 (8.949 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

When I export a note to PDF by Chrome built-in print, the URL will show next to the link, like this screen shot 2017-08-27 at 23 13 49

The link is still available after export to PDF, so it seems we can remove the URL after the link? And this can be done by adding CSS rule.

@media print {
    a[href]::after {
        content: none !important;
    }
}

Guia do colaborador