Skip to content

Commit 3bddf91

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

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,30 @@ is not indented, but
8282
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).
85+
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+
```

0 commit comments

Comments
 (0)