Skip to content

Commit b59bec4

Browse files
Update to 3 in STEP and README.md
1 parent edd4ce8 commit b59bec4

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

.github/steps/-step.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2
1+
3

README.md

+31-11
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,51 @@ _Organize ideas and collaborate using Markdown, a lightweight language for text
1414
</header>
1515

1616
<!--
17-
<<< Author notes: Step 2 >>>
17+
<<< Author notes: Step 3 >>>
1818
Start this step by acknowledging the previous step.
1919
Define terms and link to docs.github.com.
2020
-->
2121

22-
## Step 2: Add an image
22+
## Step 3: Add a code example
2323

24-
_Great job adding headers to the file :sparkles:_
24+
_Great job adding an image to the file :tada:_
2525

26-
Let's add an image. Include descriptive text in the square brackets. This text is read aloud for people using screen readers. It's also shown at times when your image doesn't display, such as when there's a poor connection. You can see the syntax for images below:
26+
In addition to code blocks, some code blocks should be rendered differently depending on the language, such as JavaScript or command-line text.
2727

28-
### Example
28+
### Example 1
2929

30-
```md
31-
![Image of Yaktocat](https://octodex.github.com/images/yaktocat.png)
30+
<pre>
3231
```
32+
$ git init
33+
Initialized empty Git repository in /Users/skills/Projects/recipe-repository/.git/
34+
```
35+
</pre>
36+
37+
#### How it looks
38+
39+
```
40+
$ git init
41+
Initialized empty Git repository in /Users/skills/Projects/recipe-repository/.git/
42+
```
43+
44+
### Example 2
45+
46+
<pre>
47+
``` javascript
48+
var myVar = "Hello, world!";
49+
```
50+
</pre>
3351

3452
#### How it looks
3553

36-
<img alt="Image of Yaktocat" src=https://octodex.github.com/images/yaktocat.png width=400>
54+
```javascript
55+
var myVar = "Hello, world!";
56+
```
3757

38-
### :keyboard: Activity: Adding an image
58+
### :keyboard: Activity: Adding a code example
3959

40-
1. As you did before, edit the `index.md` file in this pull request.
41-
1. In the file, add the correct Markdown for your image of choice. Don't forget to include alt-text!
60+
1. As you did before, edit the file in this pull request.
61+
1. In the file, add the correct Markdown for a code example of your choice.
4262
1. Use the **Preview** tab to check your Markdown formatting.
4363
1. Commit your changes.
4464
1. Wait about 20 seconds then refresh this page (the one you're following instructions from). [GitHub Actions](https://docs.github.com/en/actions) will automatically update to the next step.

0 commit comments

Comments
 (0)