Comments (9)
Hi @lessonhacker! You're right -- I can't even open the SVG's in photopea.com. Let me get this fixed 👍
from showcode.
Yea it’s similar to that (on my phone at the moment so can’t post screenshot of Chrome example). Looks like the tech is getting there but not entirely yet.
I’ll keep this issue closed for the time being. I may dive into this package and see if I can commit any PRs to resolve these issues.
from showcode.
Okay, this is apparently going to be near impossible to fix due to show shiki generates tokens. I investigated very thoroughly, and no one has been able to export shiki tokens to SVG, even on the shiki playground site, SVG's don't get generated properly.
We'll have to wait on this one 👍
from showcode.
I've also tried using paid software, but even it can't handle processing shiki tokens...
from showcode.
Maybe it's a good idea to disable SVG export altogether...
Looking at the SVG source, it's basically HTML & CSS wrapped in an SVG tag. That's not really helpful... and also misleading. I am tempted to always save and keep a format that's scalable and lossless, but now I'm glad I didn't use SVG export. 😅
Carbon does exactly the same, by the way...
from showcode.
from showcode.
This may be the ticket: https://www.npmjs.com/package/dom-to-svg
from showcode.
Results aren't perfect using dom-to-svg
, but they're the best I've seen. Shadows are lost unfortunately, along with background gradients.
Is the below good enough for you guys?
Another example:
from showcode.
I don't know how it looks for you, but it's completely shot in Firefox:
from showcode.
Related Issues (20)
- Add ability to duplicate tabs
- Add ability to "brand" screenshots
- Add ability to share snippets via short link HOT 1
- Add ability to toggle visibility of git diffs without line numbers
- Strip initial PHP tag enabled causes line highlights to be off
- Opacity slider should be debounced for performance
- Replace Electron with Tauri for compiling desktop application
- Changing title with fit to window locked does not trigger canvas size update
- Copy Image Cannot read properties of undefined (reading 'write') HOT 2
- Add ability to modify editor line height in preferences
- 建议导出图片增加 x2 x4 x8 倍尺寸 HOT 2
- (support | paid app) Title on the window header does not update HOT 2
- Add "dividers" toggle when multiple editors exist
- Add ability to add images and other elements to the image canvas
- PHPStorm plugin
- Add ability to set a 3D effect to code window
- (API) Export Pixel Ratio not working as intended to boost resolution
- Make opacity slider target background color, not entire code window
- Question: What is the default font family? HOT 1
- Height input is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from showcode.