chore: enabled MD040 lint rule (#47853)

* enabled `MD040` lint rule

* fix: lint errors

* using `markup` instead of `text`
This commit is contained in:
Rajat
2022-10-06 16:07:54 +05:30
committed by GitHub
parent 0097b0f031
commit 4e13b3becc
9 changed files with 14 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ MD022: false # headings don't need surrounding by newlines
MD025: false # headings are used as markers by the parser
MD031: true # fenced blocks do need surrounding by newlines
MD033: false # inline html is required
MD040: false # TODO: enable this when the challenges have been fixed
MD040: true # fenced code blocks should have a language specified
MD034: false # allow bare-URLs
MD036: false # TODO: **Example** is the main offender, should that be a heading?
whitespace: false # extra whitespace is ignored, so we don't enforce it.

View File

@@ -38,7 +38,7 @@ print(certificates_earned)
## --answers--
```
```markup
Tom 8
Kris 2
Ahmad 5
@@ -48,7 +48,7 @@ dtype: int64
---
```
```markup
Kris 2
Ahmad 5
Beau 6
@@ -58,7 +58,7 @@ dtype: int64
---
```
```markup
Tom 8
Kris 2
Ahmad 5

View File

@@ -10,7 +10,7 @@ dashedName: problem-148-exploring-pascals-triangle
We can easily verify that none of the entries in the first seven rows of Pascal's triangle are divisible by 7:
```
```markup
1
1 1
1 2 1

View File

@@ -14,7 +14,7 @@ During an n-day period a trinary string is formed for each child consisting of L
Although there are eighty-one trinary strings for a 4-day period that can be formed, exactly forty-three strings would lead to a prize:
```
```markup
OOOO OOOA OOOL OOAO OOAA OOAL OOLO OOLA OAOO OAOA
OAOL OAAO OAAL OALO OALA OLOO OLOA OLAO OLAA AOOO
AOOA AOOL AOAO AOAA AOAL AOLO AOLA AAOO AAOA AAOL

View File

@@ -40,25 +40,25 @@ assert(typeof diophantineEquation(7) === 'number');
`diophantineEquation(7)` should return `5`.
```
```js
assert.strictEqual(diophantineEquation(7), 5);
```
`diophantineEquation(100)` should return `61`.
```
```js
assert.strictEqual(diophantineEquation(100), 61);
```
`diophantineEquation(409)` should return `409`.
```
```js
assert.strictEqual(diophantineEquation(409), 409);
```
`diophantineEquation(500)` should return `421`.
```
```js
assert.strictEqual(diophantineEquation(500), 421);
```

View File

@@ -9,7 +9,7 @@ dashedName: step-47
You may already be familiar with decimal, or base 10 values, which go from 0 - 9. Hexadecimal, or base 16 values, go from 0 - 9, then A - F:
```
```js
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
```

View File

@@ -11,7 +11,7 @@ Logical operators can be used to construct more complex media queries. The `and`
For example, a media query that targets a display width between 500px and 1000px would be:
```
```css
@media (min-width: 500px) and (max-width: 1000px){
}

View File

@@ -11,7 +11,7 @@ Add a medium divider after your `.daily-value` element. Below that new divider,
Give the `p` element the following text:
```
```markup
* The % Daily Value (DV) tells you how much a nutrient in a serving of food contributes to a daily diet. 2,000 calories a day is used for general nutrition advice.
```

View File

@@ -9,7 +9,7 @@ dashedName: step-7
Give your `#text` element the following text:
```
```markup
Welcome to Dragon Repeller. You must defeat the dragon that is preventing people from leaving the town.
You are in the town square. Where do you want to go? Use the buttons above.
```