123456789101112131415typeinline=[`Textofstring|`Codeofstring]typeblock=[`Paragraphofinlinelist|`Preofstring]typedoc=[`Textofblocklist]letparse_textlocs=trySome(Some(`Text(Ag_doc_lexer.parse_strings:blocklist)))withe->failwith(Printf.sprintf"%s:\nInvalid format for doc.text %S:\n%s"(Atd_ast.string_of_locloc)s(Printexc.to_stringe))letget_doclocan:docoption=Atd_annot.get_field(parse_textloc)None["doc"]"text"an