Make section headings within the question list linkable. (#24519)
kat

kat commited on 2017-12-04 21:32:28
Zeige 1 geänderte Dateien mit 22 Einfügungen und 11 Löschungen.


Add anchors.
Change heading text from paragraphs to h4s, but keep previous vertcal spacing.
... ...
@@ -14,7 +14,8 @@
14 14
     <h1>Tor FAQ</h1>
15 15
     <hr>
16 16
 
17
-    <p>General questions:</p>
17
+    <a id="general"></a>
18
+    <h4 style="margin-bottom: 18px"><a class="anchor" href="#general">General questions:</a></h4>
18 19
     <ul>
19 20
     <li><a href="#WhatIsTor">What is Tor?</a></li>
20 21
     <li><a href="#Torisdifferent">How is Tor different from other
... ...
@@ -43,7 +44,8 @@ proxies?</a></li>
43 44
     exit nodes are there?</a></li>
44 45
     </ul>
45 46
 
46
-    <p>Compilation and Installation:</p>
47
+    <a id="comp-install"></a>
48
+    <h4 style="margin-bottom: 18px"><a class="anchor" href="#comp-install">Compilation and Installation:</a></h4>
47 49
 
48 50
     <ul>
49 51
     <li><a href="#HowUninstallTor">How do I uninstall Tor?</a></li>
... ...
@@ -58,7 +60,8 @@ proxies?</a></li>
58 60
 includes Tor?</a></li>
59 61
     </ul>
60 62
 
61
-    <p>Tor Browser (general):</p>
63
+    <a id="tbb"></a>
64
+    <h4 style="margin-bottom: 18px"><a class="anchor" href="#tbb">Tor Browser (general):</a></h4>
62 65
     <ul>
63 66
 
64 67
     <li><a href="#TBBFlash">Why can't I view videos on YouTube and other
... ...
@@ -90,7 +93,8 @@ unsafe?</a></li>
90 93
     with my application?</a></li>
91 94
     </ul>
92 95
 
93
-    <p>Tor Browser (3.x and later):</p>
96
+    <a id="tbb-3plus"></a>
97
+    <h4 style="margin-bottom: 18px"><a class="anchor" href="#tbb-3plus">Tor Browser (3.x and later):</a></h4>
94 98
 
95 99
     <ul>
96 100
     <li><a href="#DisableJS">How do I disable JavaScript?</a></li>
... ...
@@ -105,7 +109,8 @@ unsafe?</a></li>
105 109
     How do I verify a build?</a></li>
106 110
     </ul>
107 111
 
108
-    <p>Advanced Tor usage:</p>
112
+    <a id="advanced"></a>
113
+    <h4 style="margin-bottom: 18px"><a class="anchor" href="#advanced">Advanced Tor usage:</a></h4>
109 114
 
110 115
     <ul>
111 116
     <li><a href="#torrc">I'm supposed to "edit my torrc". What does
... ...
@@ -129,7 +134,8 @@ country)
129 134
     SOCKS is leaking DNS requests?</a></li>
130 135
     </ul>
131 136
 
132
-    <p>Running a Tor relay:</p>
137
+    <a id="relay"></a>
138
+    <h4 style="margin-bottom: 18px"><a class="anchor" href="#relay">Running a Tor relay:</a></h4>
133 139
     <ul>
134 140
 
135 141
     <li><a href="#HowDoIDecide">How do I decide if I should run a relay?
... ...
@@ -191,14 +197,16 @@ relay.</a></li>
191 197
     run my own?</a></li>
192 198
     </ul>
193 199
 
194
-    <p>Tor onion services:</p>
200
+    <a id="onion-services"></a>
201
+    <h4 style="margin-bottom: 18px"><a class="anchor" href="#onion-services">Tor onion services:</a></h4>
195 202
 
196 203
     <ul>
197 204
     <li><a href="#AccessOnionServices">How do I access onion services?</a></li>
198 205
     <li><a href="#ProvideAnOnionService">How do I provide an onion service?</a></li>
199 206
     </ul>
200 207
 
201
-    <p>Development:</p>
208
+    <a id="dev"></a>
209
+    <h4 style="margin-bottom: 18px"><a class="anchor" href="#dev">Development:</a></h4>
202 210
 
203 211
     <ul>
204 212
     <li><a href="#VersionNumbers">What do these weird version numbers
... ...
@@ -212,7 +220,8 @@ relay.</a></li>
212 220
     into Tor?</a></li>
213 221
     </ul>
214 222
 
215
-    <p>Anonymity and Security:</p>
223
+    <a id="anonsec"></a>
224
+    <h4 style="margin-bottom: 18px"><a class="anchor" href="#anonsec">Anonymity and Security:</a></h4>
216 225
     <ul>
217 226
     <li><a href="#WhatProtectionsDoesTorProvide">What protections does Tor
218 227
     provide?</a></li>
... ...
@@ -240,7 +249,8 @@ uses.</a></li>
240 249
     <li><a href="#LearnMoreAboutAnonymity">Where can I learn more about anonymity?</a></li>
241 250
     </ul>
242 251
 
243
-    <p>Alternate designs that we don't do (yet):</p>
252
+    <a id="altdesigns"></a>
253
+    <h4 style="margin-bottom: 18px"><a class="anchor" href="#altdesigns">Alternate designs that we don't do (yet):</a></h4>
244 254
 
245 255
     <ul>
246 256
     <li><a href="#EverybodyARelay">You should make every Tor user be a
... ...
@@ -270,7 +280,8 @@ packets,
270 280
     traffic.</a></li>
271 281
     </ul>
272 282
 
273
-    <p>Abuse:</p>
283
+    <a id="abuse"></a>
284
+    <h4 style="margin-bottom: 18px"><a class="anchor" href="#abuse">Abuse:</a></h4>
274 285
     <ul>
275 286
     <li><a href="#Criminals">Doesn't Tor enable criminals to do bad
276 287
 things?</a></li>
277 288