The remark-github-alerts plugin I'm using creates the little icon via CSS, by supplying a variable with data:... 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:
Note
This will print no problem
The [`remark-github-alerts`](https://github.com/hyoban/remark-github-alerts) plugin I'm using creates the little icon via CSS, by supplying a variable with `data:...` 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:
> [!NOTE]
> This will print no problem
Vojta
added the print label 2025-06-08 21:08:32 +00:00
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.
npm run build --force
otherwise, the content is cached.
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.
```
npm run build --force
```
otherwise, the content is cached.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The
remark-github-alertsplugin 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
xmlnsattribute 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
--forceflag.otherwise, the content is cached.