@AgreeableLandscape to test • edit-23 years agoEmbedding base64 images message-square6arrow-up12arrow-down10file-text
arrow-up12arrow-down1external-linkEmbedding base64 images @AgreeableLandscape to test • edit-23 years agomessage-square6file-text
minus-square@AgreeableLandscapeOPlink2•3 years agoSome notes: the character limit prevents you from embedding anything other than very small images, and by coincidence, some base64 strings can trigger the slur filter.
minus-squareMayalink3•edit-23 years ago![hmmm](data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍄</text></svg>)
minus-square@AgreeableLandscapeOPlink1•edit-23 years agoThink it’s because the Markdown parser doesn’t recognize it as a valid URL. Base64 doesn’t work for SVGs either (maybe it’s because of the plus sign): ![](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48dGV4dCB5PSIuOWVtIiBmb250LXNpemU9IjkwIj7wn42EPC90ZXh0Pjwvc3ZnPg==) It kind of works as a post URL though, but at least on my browser, you need to press enter before it will display: https://lemmy.ml/post/49383
minus-square@AgreeableLandscapeOPlink1•edit-23 years agoWow, the formatted Markdown even truncates the data URL with an ellipses.
Some notes: the character limit prevents you from embedding anything other than very small images, and by coincidence, some base64 strings can trigger the slur filter.
![hmmm](data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍄</text></svg>)
damn haha
Think it’s because the Markdown parser doesn’t recognize it as a valid URL.
Base64 doesn’t work for SVGs either (maybe it’s because of the plus sign):
![](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48dGV4dCB5PSIuOWVtIiBmb250LXNpemU9IjkwIj7wn42EPC90ZXh0Pjwvc3ZnPg==)
It kind of works as a post URL though, but at least on my browser, you need to press enter before it will display: https://lemmy.ml/post/49383
I’ve made it work with kramdown at least :)
Wow, the formatted Markdown even truncates the data URL with an ellipses.