Skip to content

Commit e65f804

Browse files
committed
Merge pull request #397 from crd/fix-console-blocks-in-06-github
Fix console blocks in 06-github
2 parents a41f2b2 + 46b404a commit e65f804

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

book/06-github/sections/2-contributing.asc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ The first really useful GitHub specific Markdown feature, especially for use in
305305

306306
You can create a task list like this:
307307

308-
[source]
308+
[source,text]
309309
----
310310
- [X] Write the code
311311
- [ ] Write all the tests
@@ -334,7 +334,7 @@ You can also add code snippets to comments. This is especially useful if you wan
334334

335335
To add a snippet of code you have to ``fence'' it in backticks.
336336

337-
[source]
337+
[source,text]
338338
----
339339
```java
340340
for(int i=0 ; i < 5 ; i++)
@@ -356,7 +356,7 @@ If you're responding to a small part of a long comment, you can selectively quot
356356

357357
The quotes look something like this:
358358

359-
[source]
359+
[source,text]
360360
----
361361
> Whether 'tis Nobler in the mind to suffer
362362
> The Slings and Arrows of outrageous Fortune,
@@ -380,7 +380,7 @@ image::images/markdown-06-emoji-complete.png[Emoji autocompleter]
380380

381381
Emojis take the form of `:<name>:` anywhere in the comment. For instance, you could write something like this:
382382

383-
[source]
383+
[source,text]
384384
----
385385
I :eyes: that :bug: and I :cold_sweat:.
386386

book/06-github/sections/3-maintaining.asc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ There's also a way to fetch _all_ of the pull requests, and keep them up to date
170170
Open up `.git/config` in your favorite editor, and look for the `origin` remote.
171171
It should look a bit like this:
172172

173+
[source,ini]
173174
----
174175
[remote "origin"]
175176
url = https://github.com/libgit2/libgit2
@@ -181,6 +182,7 @@ It's a way of mapping names on the remote with names in your local `.git` direct
181182
This particular one tells Git, "the things on the remote that are under `refs/heads` should go in my local repository under `refs/remotes/origin`."
182183
You can modify this section to add another refspec:
183184

185+
[source,ini]
184186
----
185187
[remote "origin"]
186188
url = https://github.com/libgit2/libgit2.git

0 commit comments

Comments
 (0)