Skip to content

Commit

Permalink
omd -> cmarkit in event.ml
Browse files Browse the repository at this point in the history
  • Loading branch information
sabine committed Nov 17, 2023
1 parent 1fe7c42 commit a87041c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tool/ood-gen/lib/event.ml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ let of_metadata m = of_metadata m ~slug:(Utils.slugify m.title)

let decode (_, (head, body_md)) =
let metadata = metadata_of_yaml head in
let body_html = Omd.of_string body_md |> Omd.to_html in
let body_html =
Cmarkit.Doc.of_string body_md |> Cmarkit_html.of_doc ~safe:true
in
Result.map (of_metadata ~body_md ~body_html) metadata

let all () =
Expand Down

0 comments on commit a87041c

Please sign in to comment.