All Browsers
You can use the following to add links after your hrefs
@media print {
a {
word-break: break-all;
&::after {
content: " [" attr(href) "]";
display: inline;
font-style: normal;
}
}
}
Firefox
Anything set as display: grid is going to get a page-break after it when printing in Firefox. You're going to want to manually set those items to display: block.