File tree Expand file tree Collapse file tree 2 files changed +31
-17
lines changed
test/integration/markdown.t Expand file tree Collapse file tree 2 files changed +31
-17
lines changed Original file line number Diff line number Diff line change @@ -166,12 +166,8 @@ let rec documented_src (l : DocumentedSrc.t) args nesting_level =
166
166
let noop = paragraph noop in
167
167
let take_code l =
168
168
let c, _, rest =
169
- let expansion_not_inlined url = not (should_inline url) in
170
169
Take. until l ~classify: (function
171
170
| DocumentedSrc. Code c -> Accum c
172
- | DocumentedSrc. Alternative (Expansion e ) ->
173
- if expansion_not_inlined e.url then Accum e.summary
174
- else Rec e.expansion
175
171
| _ -> Stop_and_keep )
176
172
in
177
173
(c, rest)
@@ -190,7 +186,9 @@ let rec documented_src (l : DocumentedSrc.t) args nesting_level =
190
186
(item_heading nesting_level (source_code c args))
191
187
(continue rest)
192
188
else noop
193
- | Alternative _ -> continue rest
189
+ | Alternative (Expansion { url; expansion; _ } ) ->
190
+ if should_inline url then documented_src expansion args nesting_level
191
+ else continue rest
194
192
| Subpage p ->
195
193
blocks (subpage p.content args (nesting_level + 1 )) (continue rest)
196
194
| Documented _ | Nested _ ->
Original file line number Diff line number Diff line change 27
27
28
28
# ##### type y'
29
29
30
- # ##### module type Foo' = sig
30
+ # ##### module type Foo'
31
+
32
+ # ##### = sig
31
33
32
34
# ##### type foo
33
35
34
36
# ##### end
35
37
36
- # ##### module Bar : sig ... end
38
+ # ##### module Bar
39
+
40
+ # ##### module type Bar'
37
41
38
- # ##### module type Bar' = sig
42
+ # ##### = sig
39
43
40
44
# ##### type bar'
41
45
42
46
# ##### end
43
47
44
- # ##### module type Foo = sig
48
+ # ##### module type Foo
49
+
50
+ # ##### = sig
45
51
46
52
# ##### type foo
47
53
48
54
# ##### type bar'
49
55
50
- # ##### module type Foo' = sig
56
+ # ##### module type Foo'
57
+
58
+ # ##### = sig
51
59
52
60
# ##### type foo'
53
61
142
150
143
151
@ author : David Sheets
144
152
145
- # ##### module Foo : sig ... end
153
+ # ##### module Foo
146
154
147
155
The end foo end keyword in doc comment.
148
156
201
209
202
210
<a id="module-type-Foo'" ></a >
203
211
204
- # ##### module type Foo' = sig
212
+ # ##### module type Foo'
213
+
214
+ # ##### = sig
205
215
206
216
<a id="type-foo" ></a >
207
217
211
221
212
222
<a id="module-Bar" ></a >
213
223
214
- # ##### module Bar : sig ... end
224
+ # ##### module Bar
215
225
216
226
<a id="module-type-Bar'" ></a >
217
227
218
- # ##### module type Bar' = sig
228
+ # ##### module type Bar'
229
+
230
+ # ##### = sig
219
231
220
232
<a id="type-bar'" ></a >
221
233
225
237
226
238
<a id="module-type-Foo" ></a >
227
239
228
- # ##### module type Foo = sig
240
+ # ##### module type Foo
241
+
242
+ # ##### = sig
229
243
230
244
<a id="type-foo" ></a >
231
245
237
251
238
252
<a id="module-type-Foo'" ></a >
239
253
240
- # ##### module type Foo' = sig
254
+ # ##### module type Foo'
255
+
256
+ # ##### = sig
241
257
242
258
<a id="type-foo'" ></a >
243
259
358
374
359
375
<a id="module-Foo" ></a >
360
376
361
- # ##### module Foo : sig ... end
377
+ # ##### module Foo
362
378
363
379
The end foo end keyword in doc comment.
364
380
You can’t perform that action at this time.
0 commit comments