Skip to content

Commit

Permalink
Update to omd.2.0.0~alpha3
Browse files Browse the repository at this point in the history
odoc-parser.2.0.0 doesn't support tables, so we can't emit them.
  • Loading branch information
MisterDA committed Feb 10, 2023
1 parent 75cea68 commit f4ad474
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
(depends
(ocaml (>= "4.08"))
base-bytes
(omd (>= "2.0.0~alpha2"))))
(omd (>= "2.0.0~alpha3"))))
2 changes: 1 addition & 1 deletion md2mld.opam
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ depends: [
"dune" {>= "3.6"}
"ocaml" {>= "4.08"}
"base-bytes"
"omd" {>= "2.0.0~alpha2"}
"omd" {>= "2.0.0~alpha3"}
"odoc" {with-doc}
]
build: [
Expand Down
3 changes: 3 additions & 0 deletions src/backend.ml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ let rec block ctx (bl : 'attr Omd.block) =
, inline text
, "}" )
| Definition_list _ -> Null
| Table (_attr, _header, _rows) ->
failwith "odoc-parser.2.0.0 doesn't support tables.\n\
Check https://github.com/ocaml-doc/odoc-parser/pull/11!"


let of_doc ?(min_head_lvl = 0) doc =
Expand Down

0 comments on commit f4ad474

Please sign in to comment.