My aggregated monorepo of OCaml code, automaintained
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow custom tags in .mld pages

Previously, custom extension tags like @admonition.note and @rfc were
only allowed in OCaml documentation comments, not in standalone .mld
pages. This made it impossible to demonstrate extensions in their own
documentation.

Change tags_allowed from false to true when parsing .mld page content,
enabling extension tags to work in standalone documentation pages.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

+1 -1
+1 -1
odoc/src/loader/doc_attr.ml
··· 161 161 read_string ~tags_allowed:true internal_tags parent (pad_loc loc) str 162 162 163 163 let page parent loc str = 164 - let elements, tags = read_string ~tags_allowed:false Odoc_model.Semantics.Expect_page_tags parent loc.Location.loc_start 164 + let elements, tags = read_string ~tags_allowed:true Odoc_model.Semantics.Expect_page_tags parent loc.Location.loc_start 165 165 str 166 166 in 167 167 { Comment.elements; warnings_tag = None }, tags