Skip to content

Commit aa64bb2

Browse files
committed
Meta: update repository files
Add the additional formatting rules that originated in Fetch.
1 parent 1f20347 commit aa64bb2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,33 @@ is.
8383

8484
End tags may be included (if done consistently) and attributes may be quoted (using double quotes), though the prevalent theme is to omit end tags and not quote attributes (unless they contain a space).
8585

86+
Place one newline between paragraphs (including list elements). Place three newlines before `<h2>`, and two newlines before other headings. This does not apply when a nested heading follows the parent heading.
87+
```html
88+
<ul>
89+
<li><p>Do not place a newline above.
90+
91+
<li><p>Place a newline above.
92+
</ul>
93+
94+
<p>Place a newline above.
95+
96+
97+
<h3>Place two newlines above.</h3>
98+
99+
<h4>Placing one newline is OK here.</h4>
100+
101+
102+
<h4>Place two newlines above.</h4>
103+
```
104+
Use camel-case for variable names and "spaced" names for definitions, algorithms, etc.
105+
```html
106+
<p>A <a for=/>request</a> has an associated
107+
<dfn export for=request id=concept-request-redirect-mode>redirect mode</dfn>,...
108+
```
109+
```html
110+
<p>Let <var>redirectMode</var> be <var>request</var>'s <a for=request>redirect mode</a>.
111+
```
112+
86113
## Implementations
87114

88115
A complete JavaScript implementation of the standard can be found at

0 commit comments

Comments
 (0)