Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SVG] can't set background to a PowerPoint-compatible transparent #276

Closed
yume-chan opened this issue Dec 14, 2021 · 1 comment
Closed

Comments

@yume-chan
Copy link

I want to insert SVGs generated by shiki and shiki-renderer-svg to PowerPoint, while having a transparent background, but it doesn't work, the background is always black.

image

Old SVG standard doesn't support all CSS color features, I tried setting bg option to transparent, rgba(0,0,0,0) or #00000000, seems like PowerPoint supports none of them.

I tried manually edit the SVG file, fill-opacity properties works, and deleting the whole rect#bg works.

Maybe it need an extra option like bgOpacity, or be capable of parsing CSS colors and generating in a legacy-compatible way.

@octref octref added the help-wanted Extra attention is needed label Jan 26, 2023
@octref octref closed this as completed in 9944530 Jan 27, 2023
@octref octref removed the help-wanted Extra attention is needed label Jan 27, 2023
@octref
Copy link
Collaborator

octref commented Jan 27, 2023

I don't have powerpoint. Please verify in the next release (0.13.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants