upmath.me icon indicating copy to clipboard operation
upmath.me copied to clipboard

Can the artifacts be downloaded instead of being hosted to the server?

Open iago-lito opened this issue 2 years ago • 3 comments

Hello, and thank you for upmath :)

I am curious whether the parts rendered by i.upmath.me can be directly embedded into the resulting html code as <svg> tags or base64, instead of remaining hosted on the server?

iago-lito avatar Aug 10 '23 08:08 iago-lito

Hello,

Certainly, embedding parts from i.upmath.me directly into the resulting HTML code as tags is technically feasible. You can see it in action on the Upmath website itself:

image

parpalak avatar Aug 11 '23 09:08 parpalak

Okay, thank you. So if I want to download this as the rendering result, I need to open the console and copy-paste it from there?

iago-lito avatar Aug 16 '23 07:08 iago-lito

This is a possible option, but not convenient. I'll think about how to simplify it.

parpalak avatar Aug 16 '23 08:08 parpalak

Hello, and thank you for having addressed this :) I don't see a difference yet on the two-sided editor, and the html button still yields a document in which svg nodes are hosted at i.upmath.me. Maybe an alternate html-standalone button would be the easiest way to replace them by actual svg directives?

(still, I can always get this from the console as you showed)

iago-lito avatar Feb 12 '24 08:02 iago-lito

Apologies for any confusion – I forgot to mention that it operates in a not-so-obvious manner :) If you click on the download button within the "preview" tab, you'll receive an HTML markup with embedded SVG. The functionality of the other tabs remains unchanged. Previously, pressing the download button in the "preview" tab resulted in downloading the same markup as in the "html" tab. Thank you for your understanding!

parpalak avatar Feb 12 '24 21:02 parpalak

Oh, great! So I just works out of the box now and we don't even need to think about it! Perfect. Thank you so much <3

iago-lito avatar Feb 13 '24 09:02 iago-lito