Skip to content

Commit cfdb926

Browse files
committed
another draft
1 parent c861d9b commit cfdb926

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/markdown/generator.ml

+2-5
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,11 @@ let rec source_code (s : Source.t) args =
3434
| [] -> noop
3535
| h :: t -> (
3636
let continue s =
37-
if s = [] then noop
38-
else if source_contains_text s then source_code s args
39-
else noop
37+
if source_contains_text s then source_code s args else noop
4038
in
4139
match h with
4240
| Source.Elt i -> inline i args ++ continue t
43-
| Tag (_, s) -> continue s ++ continue t
44-
(* | Tag (Some _, s) -> continue s ++ continue t *))
41+
| Tag (_, s) -> continue s ++ continue t)
4542

4643
and inline (l : Inline.t) args =
4744
match l with

0 commit comments

Comments
 (0)