Callout icons aren't printed #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
remark-github-alerts
plugin I'm using creates the little icon via CSS, by supplying a variable withdata:...
payload through a in-line style. Print exporters in browser don't seem to support it (not Safari and not Chrome at least)Instead something like inline svg or image would be better for prints. Like gitea does:
I've added the SVGs as images to the project. Lifted them directly from the remark plugin for github callouts. I had to add the
xmlns
attribute or else they wouldn't render at all. I didn't have the nerve to assemble the svg in the rehype plugin, so I made them into tiny images.I also embedded the colors directly in the SVGs. So that's hardcoded now. Inline SVG would be better.
You can force the rehype plugins to run with the
--force
flag.otherwise, the content is cached.