Skip to content

Commit 52d574b

Browse files
ErikSchierboommirkoperillo
authored andcommitted
[v3] Markdown sub-headings must be parent level incremented by one.
The full specification can be found [here](https://github.com/exercism/docs/blob/main/contributing/standards/markdown.md).
1 parent 85d2860 commit 52d574b

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ Each problem/submodule has three source sets:
149149
### Prerequisites
150150
Before you proceed, please ensure that you have `jq` (library that parses JSON) & `ruby` installed on your machine.
151151

152-
##### Debian Linux
152+
#### Debian Linux
153153
`sudo apt-get install jq ruby-full`
154154

155-
##### macOS
155+
#### macOS
156156
`brew install jq ruby`
157157

158158
If you are going to make significant contribution(s) to the track, you might find it handy to have a complete local install of exercism on your computer. This way, you can run the full suite of tests without having to create/update a PR.

exercises/concept/chars/.docs/hints.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hints
22

3-
### 1. Replace any spaces encountered with underscores
3+
## 1. Replace any spaces encountered with underscores
44

55
- [This tutorial][chars-tutorial] is useful.
66
- [Reference documentation][chars-docs] for `char`s is here.
@@ -9,15 +9,15 @@
99
- See [this method][iswhitespace] for detecting spaces. Remember it is a static method.
1010
- `char` literals are enclosed in single quotes.
1111

12-
### 2. Replace control characters with the upper case string "CTRL"
12+
## 2. Replace control characters with the upper case string "CTRL"
1313

1414
- See [this method][iscontrol] to check if a character is a control character.
1515

16-
### 3. Convert kebab-case to camel-case
16+
## 3. Convert kebab-case to camel-case
1717

1818
- See [this method][toupper] to convert a character to upper case.
1919

20-
### 4. Omit Greek lower case letters
20+
## 4. Omit Greek lower case letters
2121

2222
- `char`s support the default equality and comparison operators.
2323

exercises/concept/chars/.docs/instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ zero or more letters and underscores.
88

99
In all cases the input string is guaranteed to be non-null. Note that the `clean` method should treat an empty string as valid.
1010

11-
### 1. Replace any spaces encountered with underscores
11+
## 1. Replace any spaces encountered with underscores
1212

1313
Implement the (_static_) `Identifier.clean()` method to replace any spaces with underscores. This also applies to leading and trailing spaces.
1414

@@ -17,7 +17,7 @@ Identifier.clean("my Id");
1717
// => "my___Id"
1818
```
1919

20-
### 2. Replace control characters with the upper case string "CTRL"
20+
## 2. Replace control characters with the upper case string "CTRL"
2121

2222
Modify the (_static_) `Identifier.clean()` method to replace control characters with the upper case string `"CTRL"`.
2323

@@ -26,7 +26,7 @@ Identifier.clean("my\0Id");
2626
// => "myCTRLId",
2727
```
2828

29-
### 3. Convert kebab-case to camelCase
29+
## 3. Convert kebab-case to camelCase
3030

3131
Modify the (_static_) `Identifier.clean()` method to convert kebab-case to camelCase.
3232

@@ -35,7 +35,7 @@ Identifier.Clean("à-ḃç");
3535
// => "àḂç"
3636
```
3737

38-
### 4. Omit Greek lower case letters
38+
## 4. Omit Greek lower case letters
3939

4040
Modify the (_static_) `Identifier.clean()` method to omit any Greek letters in the range 'α' to 'ω'.
4141

exercises/concept/switch-statement/.docs/hints.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
- The [`switch` statement documentation][switch-statement] provides an introduction to `switch` statements.
44

5-
### 1. Output descriptions of the players based on their shirt number
5+
## 1. Output descriptions of the players based on their shirt number
66

77
- The [`break`][break] statement is useful here.
88

9-
### 2. Raise an alert if an unknown shirt number is encountered
9+
## 2. Raise an alert if an unknown shirt number is encountered
1010

1111
- The [`default`][default] statement can be used here.
1212

exercises/concept/switch-statement/.docs/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
You are developing a system to help the staff of a football/soccer club's web site report on matches. Data is received from a variety of sources and piped into a single stream after being cleaned up.
44

5-
### 1. Output descriptions of the players based on their shirt number
5+
## 1. Output descriptions of the players based on their shirt number
66

77
The team only ever plays a 4-3-3 formation and has never agreed with the 1965 change to the rules allowing for substitutions, never mind enlarged squads.
88

@@ -26,7 +26,7 @@ PlayAnalyzer.onField(10);
2626
// => "striker"
2727
```
2828

29-
### 2. Raise an alert if an unknown shirt number is encountered
29+
## 2. Raise an alert if an unknown shirt number is encountered
3030

3131
Modify the `PlayAnalyzer.onField()` method to throw an `IllegalArgumentException` when a shirt number outside the range 1-11 is processed.
3232

0 commit comments

Comments
 (0)