Skip to content

Commit 437f5d8

Browse files
qzhou1607-zzalrra
authored andcommitted
Chore: Make <details> be displayed correctly
An issue within the `html` regex in the markdown parser `marked` (see: markedjs/marked#1032) makes the current code not be correctly parsed for the site. Adding blank lines between the comments and the HTML code temporarily fixed the issues. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ref webhintio/webhintio.github.io#364 Fix webhintio/webhintio.github.io#364 Close #771
1 parent cbcd924 commit 437f5d8

8 files changed

+16
-0
lines changed

docs/user-guide/rules/content-type.md

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Content-Type: text/javascript; charset=utf-8
109109
## How to configure the server to pass this rule
110110

111111
<!-- markdownlint-disable MD033 -->
112+
112113
<details>
113114
<summary>How to configure Apache</summary>
114115

@@ -284,6 +285,7 @@ Note that:
284285
file in the root of the web site/app.
285286

286287
</details>
288+
287289
<!-- markdownlint-enable MD033 -->
288290

289291
## Can the rule be configured?

docs/user-guide/rules/highest-available-document-mode.md

+2
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ X-UA-Compatible: ie=edge
219219
## How to configure the server to pass this rule
220220

221221
<!-- markdownlint-disable MD033 -->
222+
222223
<details>
223224
<summary>How to configure Apache</summary>
224225

@@ -281,6 +282,7 @@ Note that:
281282
file in the root of the web site/app.
282283

283284
</details>
285+
284286
<!-- markdownlint-enable MD033 -->
285287

286288
## Can the rule be configured?

docs/user-guide/rules/http-cache.md

+2
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ Cache-Control: no-cache
153153
## How to configure the server to pass this rule
154154

155155
<!-- markdownlint-disable MD033 -->
156+
156157
<details>
157158
<summary>How to configure Apache</summary>
158159

@@ -277,6 +278,7 @@ Also note that:
277278
file in the root of the web site/app.
278279

279280
</details>
281+
280282
<!-- markdownlint-enable MD033 -->
281283

282284
## Can the rule be configured?

docs/user-guide/rules/http-compression.md

+2
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ Content-Type: image/svg+xml
518518
## How to configure the server to pass this rule
519519

520520
<!-- markdownlint-disable MD033 -->
521+
521522
<details>
522523
<summary>How to configure Apache</summary>
523524

@@ -793,6 +794,7 @@ Also note that:
793794
file in the root of the web site/app.
794795

795796
</details>
797+
796798
<!-- markdownlint-enable MD033 -->
797799

798800
## Can the rule be configured?

docs/user-guide/rules/no-disallowed-headers.md

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ HTTP/... 200 OK
8181
## How to configure the server to pass this rule
8282

8383
<!-- markdownlint-disable MD033 -->
84+
8485
<details>
8586
<summary>How to configure Apache</summary>
8687

@@ -141,6 +142,7 @@ Note that:
141142
`.htaccess` file in the root of the web site/app.
142143

143144
</details>
145+
144146
<!-- markdownlint-enable MD033 -->
145147

146148
## Can the rule be configured?

docs/user-guide/rules/no-html-only-headers.md

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ X-XSS-Protection: 1; mode=block
8585
## How to configure the server to pass this rule
8686

8787
<!-- markdownlint-disable MD033 -->
88+
8889
<details>
8990
<summary>How to configure Apache</summary>
9091

@@ -128,6 +129,7 @@ Note that:
128129
file in the root of the web site/app.
129130

130131
</details>
132+
131133
<!-- markdownlint-enable MD033 -->
132134

133135
## Can the rule be configured?

docs/user-guide/rules/strict-transport-security.md

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ HTTP/... 200 OK
118118
## How to configure the server to pass this rule
119119

120120
<!-- markdownlint-disable MD033 -->
121+
121122
<details>
122123
<summary>How to configure Apache</summary>
123124

@@ -148,6 +149,7 @@ Note that:
148149
file in the root of the web site/app.
149150

150151
</details>
152+
151153
<!-- markdownlint-enable MD033 -->
152154

153155
## Can the rule be configured?

docs/user-guide/rules/x-content-type-options.md

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ X-Content-Type-Options: nosniff
6666
## How to configure the server to pass this rule
6767

6868
<!-- markdownlint-disable MD033 -->
69+
6970
<details>
7071
<summary>How to configure Apache</summary>
7172

@@ -96,6 +97,7 @@ Note that:
9697
file in the root of the web site/app.
9798

9899
</details>
100+
99101
<!-- markdownlint-enable MD033 -->
100102

101103
## Further Reading

0 commit comments

Comments
 (0)