[OCaml] Mobile-friendly clone of cgit.
1
(** Prose rendering facade.
2
3
Detects documentation formats by filename extension and renders content as
4
styled HTML. This module is the single entry point for prose rendering
5
throughout ogit. *)
6
7
val is_readme_filename : string -> bool
8
(** [true] when the filename starts with "readme" (case-insensitive). *)
9
10
val is_doc_filename : string -> bool
11
(** [true] when the extension indicates a renderable documentation format (.md,
12
.markdown, .org, .mld, .txt). *)
13
14
val render : filename:string -> string -> Ui.node
15
(** [render ~filename content] detects the format from the extension and
16
produces a styled HTML region. *)
17