Comments (4)
π‘ Adding images as files in the user's gist might work (https://docs.github.com/en/rest/reference/gists#create-a-gist). Those images could then be referenced with their raw_url in md file, e.g. https://gist.github.com/knugie/55b6e043dee0a1781810db2131ed89fb
I know the result is not the same, but I would be totally happy with that, plus it even adds to offline usage convenience and portability capabilities. π€·
from lepton.
On a more technical note
β As far as I can tell, Electron supports pasting image content https://www.electronjs.org/docs/latest/api/clipboard#clipboardreadimagetype
π€ However, it looks like there is a major technical obstacle: GitHub doesn't support uploading image content programatically - isaacs/github#1133
People have been looking into workarounds for that, but hosting Lepton users' images in e.g. a hackjutsu repo would break a couple of Lepton's core concepts https://gist.github.com/maxisam/5c6ec10cc4146adce05d62f553c5062f
from lepton.
Thanks for the research. Image hosting is a blocker and I'm hesitant to introduce a Lepton-specific solution. But if someone implements what @knugie suggests above, I'm happy to add it behind a .leptronrc
config.
from lepton.
I would absolutely support @knugie 's suggestion. Currently I am opening the gist in a browser window directly after creating it with lepton, and then I add the image there - however, the big disadvantage I see there is that the image itself is not included when you later download the gist from Github again. Having the image file as part of the gist would make sure that they stay together.
from lepton.
Related Issues (20)
- v1.10.1-alpha cant HOT 7
- feature desecrete / make public a gist HOT 1
- jupyter notebook HOT 1
- βLepton.appβ cannot be opened because the developer cannot be verified. HOT 1
- Global code search HOT 1
- Status of lepton HOT 1
- Does selecting multiple snippets work on Macs? HOT 1
- Add .leptonrc option for default zoom level & shorcuts for zoom HOT 1
- No syntax highlighting for Python files HOT 4
- Will not run on Apple M1 / Monterey HOT 1
- Lepton-1.10.1-alpha.1-arm64.dmg image appears to be corrupted HOT 5
- `GPU process isn't usable. Goodbye.` Linux AppImage HOT 2
- Snap is loading an erroneous .leptonrc configuration HOT 1
- Color syntax is broken when a PHP file contains HTML as well
- Plase check your network condition,03 HOT 1
- [Feature Request] Syntax Highlighting for .c and .h files (C programming language) HOT 2
- Feature request: Add custom themes on `.leptonrc`
- Dependency badge(https://david-dm.org/) is down HOT 1
- Gitlab support , is there any chance? HOT 2
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 lepton.