We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d5e556 commit 0c45ebbCopy full SHA for 0c45ebb
src/markdown/link.ml
@@ -19,15 +19,7 @@ let as_filename (url : Url.Path.t) =
19
let str_path = String.concat Fpath.dir_sep (dir @ [ path ]) in
20
Fpath.(v str_path + ".md")
21
22
-let rec is_class_or_module_path (url : Url.Path.t) =
23
- match url.kind with
24
- | `Module | `LeafPage | `Page | `Class -> (
25
- match url.parent with
26
- | None -> true
27
- | Some url -> is_class_or_module_path url)
28
- | _ -> false
29
-
30
-let should_inline x = not @@ is_class_or_module_path x
+let should_inline _ = false
31
32
let files_of_url url =
33
- if is_class_or_module_path url then [ as_filename url ] else []
+ if should_inline url then [] else [ as_filename url ]
0 commit comments