@@ -13,11 +13,14 @@ To embed a Gist snippet in you markdown/remark content, simply add an inline cod
13
13
block using the ` gist: ` protocol.
14
14
15
15
``` md
16
- `gist:[<username>/]<gist_id>[#<gist_file>]`
17
-
18
- or
19
-
20
- `gist:[<username>/]<gist_id>[?file=<gist_file>&highlights=<number|ranges>]`
16
+ `gist:[<username>/]<gist_id>#<gist_file>`
17
+ `gist:[<username>/]<gist_id>#<gist_file>?lines=<number|ranges>`
18
+ `gist:[<username>/]<gist_id>#<gist_file>?highlights=<number|ranges>`
19
+ `gist:[<username>/]<gist_id>#<gist_file>?highlights=<number|ranges>&lines=<number|ranges>`
20
+ `gist:[<username>/]<gist_id>?file=<gist_file>`
21
+ `gist:[<username>/]<gist_id>?file=<gist_file>?lines=<number|ranges>`
22
+ `gist:[<username>/]<gist_id>?file=<gist_file>?highlights=<number|ranges>`
23
+ `gist:[<username>/]<gist_id>?file=<gist_file>?highlights=<number|ranges>&lines=<number|ranges>`
21
24
```
22
25
23
26
Where:
@@ -27,11 +30,11 @@ Can be defaulted via configuration.
27
30
This is the hash value in the gist url, e.g. https://gist.github.com/ <username\> /` ce54fdb1e5621b5966e146026995b974 ` ).
28
31
- ** gist_file** , is the name of the file in the gist to be accessed.
29
32
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 ` )
33
+ Highlights and lines can be defined using:
34
+ - A single number (e.g. ` highlights=1 ` , ` lines=1 ` )
35
+ - A list of numbers (e.g. ` highlights=1,4 ` , ` lines=1,4 ` )
36
+ - A range of numbers (e.g. ` highlights=1-4 ` , ` lines=1-4 ` )
37
+ - A combination of all above (e.g. ` highlights=1,3,7-9 ` , ` lines=1,3,7-9 ` )
35
38
36
39
## Installation
37
40
0 commit comments