Skip to content

Commit 5b9fa18

Browse files
authored
Tweak asterisk formatting for plain-text readability (#2111)
In several exercise descriptions we use asterisks for purposes other than markdown text emphasis. Mostly that is to represent the concept of multiplication, though in one instance we are simply referring to a literal asterisk. On the website these unescaped asterisks would mess up the formatting, half-emphasized text or invalid HTML. However escaping the asterisks makes it harder to understand the instructions when working in a local development environment rather than in the online editor. In other exercises we've chosen to format arithmetic formulae as code rather than escape the asterisks, which works for both environments. I've therefore chosen to extend this choice to the files that had escaped asterisks.
1 parent 514d1db commit 5b9fa18

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

exercises/all-your-base/description.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ combination of powers of **b**.
1717

1818
The number 42, *in base 10*, means:
1919

20-
(4 \* 10^1) + (2 \* 10^0)
20+
`(4 * 10^1) + (2 * 10^0)`
2121

2222
The number 101010, *in base 2*, means:
2323

24-
(1 \* 2^5) + (0 \* 2^4) + (1 \* 2^3) + (0 \* 2^2) + (1 \* 2^1) + (0 \* 2^0)
24+
`(1 * 2^5) + (0 * 2^4) + (1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (0 * 2^0)`
2525

2626
The number 1120, *in base 3*, means:
2727

28-
(1 \* 3^3) + (1 \* 3^2) + (2 \* 3^1) + (0 \* 3^0)
28+
`(1 * 3^3) + (1 * 3^2) + (2 * 3^1) + (0 * 3^0)`
2929

3030
I think you got the idea!
3131

exercises/largest-series-product/description.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Given a string of digits, calculate the largest product for a contiguous
44
substring of digits of length n.
55

66
For example, for the input `'1027839564'`, the largest product for a
7-
series of 3 digits is 270 (9 \* 5 \* 6), and the largest product for a
8-
series of 5 digits is 7560 (7 \* 8 \* 3 \* 9 \* 5).
7+
series of 3 digits is 270 `(9 * 5 * 6)`, and the largest product for a
8+
series of 5 digits is 7560 `(7 * 8 * 3 * 9 * 5)`.
99

1010
Note that these series are only required to occupy *adjacent positions*
1111
in the input; the digits need not be *numerically consecutive*.

exercises/minesweeper/description.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mines adjacent to a given empty square and replaces that square with the
1111
count.
1212

1313
The board is a rectangle composed of blank space (' ') characters. A mine
14-
is represented by an asterisk ('\*') character.
14+
is represented by an asterisk (`*`) character.
1515

1616
If a given space has no adjacent mines at all, leave that square blank.
1717

exercises/prime-factors/description.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ factors of 60: 2, 2, 3, and 5.
2424

2525
You can check this yourself:
2626

27-
- 2 \* 2 \* 3 * 5
28-
- = 4 * 15
29-
- = 60
30-
- Success!
27+
```text
28+
2 * 2 * 3 * 5
29+
= 4 * 15
30+
= 60
31+
```
32+
33+
Success!

0 commit comments

Comments
 (0)