typora-issues
typora-issues copied to clipboard
Better Base64 Support (embed, export, etc..)
When adding images to documents, it would be great if Typora had the ability to embed images within the markdown file using base64 encoding. This would prevent the need to maintain external images and the proper paths (which becomes tricky when working on multiple devices). I realize this may not be standard practice for markdown files, but it would make files infinitely more portable and prevent the need to deal with external files and paths.
For those instances where a markdown file with embedded base64 images causes issues (like uploading a README to GitHub which strips base64 images), an option to export to separate image files and a clean markdown file which references them could be used.
+1
+1
If Typora's Markdown keeps getting hacked with non-Markdown ways of doing things, it will soon no longer be a Markdown file editor. And with binaries embedded in the file, it is no longer a plaintext file (base64 not-withstanding).
Why not use MS Word or Apple Pages if you want stuff in a single non-plaintext file.
@vassudanagunta In fact Typora could support inline HTML, which is pretty common for markdowns. Having that, one could write this:
<img alt="Embedded Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." />
No need for custom solutions then, IMO.
texbundle looks like the standard (or insipiring standard) way of doing this: https://github.com/typora/typora-issues/issues/622
+1 for base64 embedded images.
If Typora's Markdown keeps getting hacked with non-Markdown ways of doing things...
Inline HTML is formally supported by Markdown and CommonMark spec. Moreover, inline HTML is explicitly within the stated spirit of Markdown (refer again to https://daringfireball.net/projects/markdown/syntax#html).
QED, inline HTML <img>
tag with base64 data is a "Markdown way of doing things".
+1 I really like to use typera to write documents, since HTML is powerful and it can support gif. could you please add the function that let customer to config their own pandoc command line, because pandoc can convert the image in html to a embedded inline html. Thank You .
Embedding images within the markdown file using base64 encoding is exactly what I need. I move files around and encrypt them and so on so maintaining img links is virtually impossible.
Any news on this? This option would greatly improve the usability when working with shared files.
Any news on this?
I need the base64 Image too for Documentation Exchange. Great idea!
How to help to get this into typora ??? Maybe this can help? https://www.base64-image.de/
I'd love to have an option to convert images to base64 just for exporting my notes to HTML. It's just not ideal to have external references when uploading a note to an online share. It would require me to create accessible links for each image and update its references in my HTML. At the moment, PDF is the way to go until there's a solution for this.
I support this idea.
Please we need this
+1
We need this thanks
+1
This is a great feature that is missing
+1
This issue has been significant for me to choose markdown editor recently as more and more work has to be done during the lockdown and needs to be shared to others. There are some websites that already support auto-base64-convert and I enjoyed the fluency and convenience so much that it seems I have to go back to the sites again, lol...
Still support your guys anyway~
I need a single .md file with image contents.
I need too too too too too too too too too too too too too too too
+1
will there come a feature for it?
+1
I found markdown with typora really an enjoyable journey. However when it comes to many images, it behaves poorly, especially when you need to share your works with others or store them neatly. Thus I have to use docx etc for many cases such as notes taking and documentation sharing with code snippets which contains lots of images for illustration purposes.
I think markdown is born to make documenting with coding simple and enjoyble while being powerful. There is no such "markdown way" someone mentioned before that limits markdown from reaching that purpose in return. Anyway I like markdown with typora and I wish to enjoy more with it, usually and urgently for images that somehow need a huge new folder to store them and I can't upload them to GitHub as a whole...
@vassudanagunta In fact Typora could support inline HTML, which is pretty common for markdowns. Having that, one could write this:
<img alt="Embedded Image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." />
No need for custom solutions then, IMO.
In order to be able to do this, I made a tool that can convert the picture to base64 and copy it directly to the clipboard for easy use
Cool, but on linux there is base64 cli tool that does that. You can pipe to any clipboard thingie and done, no need to use Go (which I love BTW but this is one of those cases where one line of bash does the trick).
+1