File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,24 @@ block using the `gist:` protocol.
14
14
15
15
``` md
16
16
`gist:[<username>/]<gist_id>[#<gist_file>]`
17
+
18
+ or
19
+
20
+ `gist:[<username>/]<gist_id>[?file=<gist_file>&highlights=<number|ranges>]`
17
21
```
18
22
19
23
Where:
20
24
- ** username** , represents the github handler whose gist is to be accessed.
21
25
Can be defaulted via configuration.
22
26
- ** gist_id** , is the id of the gist to be accessed.
23
27
This is the hash value in the gist url, e.g. https://gist.github.com/ <username\> /` ce54fdb1e5621b5966e146026995b974 ` ).
24
- - ** gist_file** , is the name of the file in the gist to be accessed.
28
+ - ** gist_file** , is the name of the file in the gist to be accessed.
29
+
30
+ Highlights can be defined using:
31
+ - A single number (e.g. ` highlights=1 ` )
32
+ - A list of numbers (e.g. ` highlights=1,4 ` )
33
+ - A range of numbers (e.g. ` highlights=1-4 ` )
34
+ - A combination of all above (e.g. ` highlights=1,3,7-9 ` )
25
35
26
36
## Installation
27
37
You can’t perform that action at this time.
0 commit comments