Skip to content

Commit e752a8f

Browse files
authored
fix: MD012 multiple blank lines (#12181)
1 parent 66576e8 commit e752a8f

File tree

340 files changed

+0
-613
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

340 files changed

+0
-613
lines changed

files/en-us/glossary/advance_measure/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ For a horizontal inline axis, this will be the width of the character.
1515
## See also
1616

1717
- {{cssxref("<length>")}}
18-

files/en-us/glossary/hoisting/index.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Note that doing so can lead to unexpected errors, and is not generally recommend
1616
> **Note:** The term hoisting is not used in any normative specification prose prior to [ECMAScript® 2015 Language Specification](https://www.ecma-international.org/ecma-262/6.0/index.html).
1717
> Hoisting was thought up as a general way of thinking about how execution contexts (specifically the creation and execution phases) work in JavaScript.
1818
19-
2019
## Function hoisting
2120

2221
One of the advantages of hoisting is that it lets you use a function before you declare it in your code.
@@ -45,7 +44,6 @@ The result of the code above is the same: "My cat's name is Tiger"
4544
*/
4645
```
4746

48-
4947
## Variable hoisting
5048

5149
Hoisting works with variables too, so you can use a variable in code before it is declared and/or initialized.
@@ -112,13 +110,11 @@ The code will succeed provided the line that initializes the variable is execute
112110

113111
For information and examples see [`let` > temporal dead zone](/en-US/docs/Web/JavaScript/Reference/Statements/let#temporal_dead_zone_tdz).
114112

115-
116113
## `class` hoisting
117114

118115
Classes defined using a [class declaration](/en-US/docs/Web/JavaScript/Reference/Classes#class_declarations) are hoisted, which means that JavaScript has a reference to the class.
119116
However the class is not initialized by default, so any code that uses it before the line in which it is initialized is executed will throw a `ReferenceError`.
120117

121-
122118
## Function and class expression hoisting
123119

124120
[Function expressions](/en-US/docs/Web/JavaScript/Reference/Operators/function) and [class expressions](/en-US/docs/Web/JavaScript/Reference/Classes#class_expressions) are not hoisted.
@@ -127,7 +123,6 @@ The expressions evaluate to a function or class (respectively), which are typica
127123
In this case the variable declaration is hoisted and the expression is its initialization.
128124
Therefore the expressions are not evaluated until the relevant line is executed.
129125

130-
131126
## See also
132127

133128
- [`var` statement](/en-US/docs/Web/JavaScript/Reference/Statements/var) — MDN

files/en-us/glossary/parameter/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const argument = 'foo';
2020
example(argument);
2121
```
2222

23-
2423
Note the difference between _parameters_ and _arguments_:
2524

2625
- Function parameters are the names listed in the function's definition.

files/en-us/glossary/transferable_objects/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ console.log(uInt8Array.byteLength); // 0
4747
> However their underlying buffer is an {{jsxref("ArrayBuffer")}}, which is a transferable object.
4848
> We could have sent `uInt8Array.buffer` in the data parameter, but not `uInt8Array` in the transfer array.
4949
50-
5150
### Transferring during a cloning operation
5251

5352
The code below shows a {{domxref("structuredClone()")}} operation where the underlying buffer is copied from the original object to the clone.
@@ -87,7 +86,6 @@ The items that can be _transferred_ are:
8786
- {{domxref("VideoFrame")}}
8887
- {{domxref("OffscreenCanvas")}}
8988

90-
9189
> **Note:** Transferrable objects are marked up in [Web IDL files](https://github.com/w3c/webref/tree/main/ed/idl) with the attribute `Transferrable`.
9290
9391
## See also

files/en-us/glossary/transient_activation/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,3 @@ Examples of APIs that require _transient activation_ are:
2121

2222
- {{domxref("MediaDevices.selectAudioOutput()")}}
2323
- [HTML Living Standard > Transient activation](https://html.spec.whatwg.org/multipage/interaction.html#transient-activation)
24-
25-

files/en-us/learn/javascript/building_blocks/events/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@ The output is as follows:
444444

445445
> **Note:** for the full source code, see [preventdefault-validation.html](https://github.com/mdn/learning-area/blob/master/javascript/building-blocks/events/preventdefault-validation.html) (also see it [running live](https://mdn.github.io/learning-area/javascript/building-blocks/events/preventdefault-validation.html) here.)
446446
447-
448447
## Event bubbling and capture
449448

450449
Event bubbling and capture are terms that describe phases in how the browser handles events targeted at nested elements.

files/en-us/learn/javascript/building_blocks/looping_code/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ button {
7777

7878
Here's the JavaScript code that implements this example:
7979

80-
8180
```js
8281
const btn = document.querySelector('button');
8382
const canvas = document.querySelector('canvas');
@@ -932,7 +931,6 @@ for (const item of array) {
932931
}
933932
```
934933

935-
936934
`for`:
937935

938936
```

files/en-us/learn/performance/video/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ Offering more modest bandwidth savings, setting `preload="metadata"` may downloa
113113

114114
Changing the setting to `auto` tells the browser to automatically download the entire video. Do this only when playback is very likely. Otherwise, it wastes a lot of bandwidth.
115115

116-
117-
118116
### Consider streaming
119117

120118
[Video streaming allows the proper video size and bandwidth](https://www.smashingmagazine.com/2018/10/video-playback-on-the-web-part-2/) (based on network speed) to be delivered to the end user. Similar to responsive images, the correct size video is delivered to the browser, ensuring fast video startup, low buffering, and optimized playback.

files/en-us/learn/server-side/django/generic_views/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,9 @@ You might also use the `{% empty %}` template tag to define what happens if the
194194
</ul>
195195
```
196196

197-
198197
While not used here, within the loop Django will also create other variables that you can use to track the iteration.
199198
For example, you can test the `forloop.last` variable to perform conditional processing the last time that the loop is run.
200199

201-
202-
203200
#### Accessing variables
204201

205202
The code inside the loop creates a list item for each book that shows both the title (as a link to the yet-to-be-created detail view) and the author.

files/en-us/mdn/structures/page_types/api_landing_page_template/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ And/or include a list of links to useful code samples that live elsewhere:
159159

160160
{{Compat("path.to.feature.Interface_1")}}
161161

162-
163162
{{Compat("path.to.feature.Interface_2")}}
164163

165164
## See also

0 commit comments

Comments
 (0)