chore: Replace single line inline code blocks with multi-line code blocks
See original GitHub issueTo make single line code code blocks stand out more, we want to replace all such inline code blocks with multi-line code blocks in the Description and Instructions sections of a challenge. There were 4 files that also had extra characters at the end, that have already been fixed (see PR #41498), so If you search all the files located in curriculum/challenges/english
with the following regex, you will find all the instances remaining to be fixed.
NOTE: Do not include the Python challenges. The single line code blocks are in the Answers section which we do not want to change at this point.
/^`[^`]+?`$/gi
Each replacement should make sure to reference the applicable language of the code. See the following examples:
HTML Code
Before:
`<button accesskey="b">Important Button</button>`
After:
```html
<button accesskey="b">Important Button</button>
```
CSS Code
Before:
`animation-iteration-count: 3;`
After:
```css
animation-iteration-count: 3;
```
JavaScript Code
Before:
`myVar = myVar * 5;`
After:
```js
myVar = myVar * 5;
```
JSX Code
Before:
`<div style={{color: "yellow", fontSize: 16}}>Mellow Yellow</div>`
After:
```jsx
<div style={{color: "yellow", fontSize: 16}}>Mellow Yellow</div>
```
Tasks:
-
Replace any single inline code blocks with characters at end with multi-line code blocks (see PR #41498)
-
Replace all single inline code blocks with multi-line code blocks by creating a separate PRs for each certification affected.
- Responsive Web Design - 46 code blocks in 36 challenges (assigned to @Sembauke)
- JavaScript Algorithms and Data Structures - 35 code blocks in 25 challenges (assigned to @ieahleen)
- Front End Libraries - 28 code blocks in 25 challenges(assigned to @LaurentLabine)
- Data Visualization - 9 code blocks in 9 challenges (assigned to ???)
- Coding Interview Prep - 25 code blocks in 9 files (assigned to ???)
To get this task accomplished quickly, we are fine with multiple contributors taking on this issue. Please let us know which section(s) you plan to create PRs for, so others will know not to work on those sections. We are limiting this issue to contributors who have already contributed in the past.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (13 by maintainers)
I can help with this, I can do the JavaScript cert
I can help with the Responsive Web Design one