Code Monkey home page Code Monkey logo

Comments (9)

stevebauman avatar stevebauman commented on May 18, 2024 1

Hi @lessonhacker! You're right -- I can't even open the SVG's in photopea.com. Let me get this fixed 👍

from showcode.

stevebauman avatar stevebauman commented on May 18, 2024 1

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.

stevebauman avatar stevebauman commented on May 18, 2024

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.

stevebauman avatar stevebauman commented on May 18, 2024

I've also tried using paid software, but even it can't handle processing shiki tokens...

from showcode.

lupinitylabs avatar lupinitylabs commented on May 18, 2024

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.

lessonhacker avatar lessonhacker commented on May 18, 2024

from showcode.

stevebauman avatar stevebauman commented on May 18, 2024

This may be the ticket: https://www.npmjs.com/package/dom-to-svg

from showcode.

stevebauman avatar stevebauman commented on May 18, 2024

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?

Untitled-1

Another example:

Untitled-1 (5)

from showcode.

lupinitylabs avatar lupinitylabs commented on May 18, 2024

I don't know how it looks for you, but it's completely shot in Firefox:

grafik

from showcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.