Browse Source

GitHub formatting of Markdown is weird

I'm often left scratching my head at why GitHub requires so much extra
space to create a source code block inside a bullet list.
master
Peter J. Jones 10 months ago
parent
commit
1300b7cce7
Signed by: Peter Jones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      README.md

+ 6
- 6
README.md View File

@@ -42,12 +42,12 @@ Setting up the example web hook
42 42
 
43 43
   1. Run the HTTP server provided by this package:
44 44
 
45
-        $ webhooks server --port 3000
45
+         $ webhooks server --port 3000
46 46
 
47 47
   2. Create a new web hook that appends to a file.  In this example
48 48
      we'll configure a hook to append to the file `/tmp/foo.pipe`:
49 49
 
50
-        $ webhooks create --append /tmp/foo.pipe
50
+         $ webhooks create --append /tmp/foo.pipe
51 51
 
52 52
      This command will print a secret code for the newly created hook.
53 53
      (If you forget the hook's secret code you can use the `webhooks
@@ -58,18 +58,18 @@ Setting up the example web hook
58 58
      do this for you and then execute other commands as requests come
59 59
      in.  (The commands receive JSONs request on their stdin.)
60 60
 
61
-        $ examples/watchfifo.sh -f /tmp/foo.pipe -- examples/download-video.sh
61
+         $ examples/watchfifo.sh -f /tmp/foo.pipe -- examples/download-video.sh
62 62
 
63 63
   4. Use the hook's secret code to trigger your script.  In this
64 64
      example we'll pretend that the secret code is `XXX`.
65 65
 
66
-        $ curl --data url=https://player.vimeo.com/video/148946917 \
67
-            http://localhost:3000/hooks/XXX
66
+         $ curl --data url=https://player.vimeo.com/video/148946917 \
67
+             http://localhost:3000/hooks/XXX
68 68
 
69 69
      This leads to the `download-video.sh` script running and being
70 70
      fed the following JSON:
71 71
 
72
-        {"url": "https://player.vimeo.com/video/148946917"}
72
+         {"url": "https://player.vimeo.com/video/148946917"}
73 73
 
74 74
 Ideally, you should run the `webhooks` server behind a reverse proxy
75 75
 that is properly configured for TLS.  This will prevent hook codes

Loading…
Cancel
Save