Comments (1)
Sounds a interesting feature.
I believe the usage of the feature could be:
- embedding the whole commit diff:
https://github.com/yusanshi/emgithub/commit/86f230a6bc37805b6186b355a41b075c123d97d9
- embedding a specific file in that commit diff (by clicking the filename shown in the following image):
https://github.com/yusanshi/emgithub/commit/86f230a6bc37805b6186b355a41b075c123d97d9#diff-36cec0a19fd4229769211afcfd94c3aad3e3a98882aa0f68cdf9e836b0cbc4f8
Also the PR can be included as they are quite the same logic. For exampe: https://github.com/yusanshi/emgithub/pull/22/files.
And surely the github.com
=>emgithub.com
for quickly jumping should still work for this feature.
However the implementation may not be easy. Currently all the three existing modes are implemented by fetching the contents from GitHub and rendering them ourselves. We need write our rendering code but this give us more freedom for customization (e.g., code hightlighting style).
But rendering the commit diff seems somewhat complicated. After some searching, I think we can:
- use the third-party libraries, like diff2html.
- or, embedd the official contents by
iframe
. But it seems to have lots of limitations and I'm not sure whether it works well.
But currently I may not have the time to implement this (Maybe after serveral months). Anyway I'll mark this as help-wanted.
from emgithub.
Related Issues (20)
- Theme request: arduino-dark HOT 3
- Hosting for demo GIF
- Rendering Jupyter Notebooks instead of showing raw code. HOT 4
- Fetch GitHub raw files from jsDelivr HOT 5
- Embeds Fail to Render After Forking Repository and Using Github Pages HOT 2
- File does not update HOT 3
- Cannot Embed on Medium HOT 4
- [Feature Request] Show Full Path in Footer HOT 4
- TypeError: Cannot read properties of null (reading 'querySelector') at embed-v2.js:422:33 HOT 4
- [Feature Request] Compile to static HTML HOT 7
- [Question] Use markers instead of line numbers HOT 1
- serviceProvider value is wrong if served from a subdirectory HOT 1
- [feature request] Add dark mode option for markdown files HOT 4
- [Request] full view render HOT 5
- Spaces indentation lost HOT 2
- Server Response is 404 - Can You Fix it HOT 4
- [Feature Request] Support multiple languages HOT 2
- Multiple `<script>` tags loaded for highlightjs
- Rendering the script tag version 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 emgithub.