Commit cb10587
Add gist support (#158)
* Add gist support
Resolves #156
It turns out that the only thing preventing this from working (other
than permissions) is determining the path associated with the Blob.
Before, the path was undefined, so the Blob was not initialized
properly. With this change, the path will be set to the filename entered
into the gist.
Assuming that that the filename is set to something reasonable, either
the filename-based language detection or the github-based language
detection will work correctly (at least, for non-relative links).
Here's a test page:
https://gist.github.com/josephfrazier/113827963013e98c6196db51cd889c39
---
Note that we may want to change the manifest.json `permissions` handling
at https://github.com/OctoLinker/browser-extension/blob/ec499e065424b5204885624a297ab463c99fa8ab/package.json#L17
See here for prior discussion: #101 (comment)
* blob-reader: add test for gist blob path1 parent ec499e0 commit cb10587
File tree
4 files changed
+826
-0
lines changed- assets
- packages/blob-reader
- fixtures/github.com/gist
4 files changed
+826
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
0 commit comments