Skip to content

Conversation

@jonludlam
Copy link
Collaborator

This is slightly cleaner than #462 I think!

cc @samoht

@jonludlam
Copy link
Collaborator Author

Getting the text of the error from odoc-parser's AST means that you end up with the text of the error with leading whitespace removed, unlike what the current mechanism does. However, since the output code doesn't put any indentation in anyway this might not be a problem.

The newer parser in odoc 3 will allow the extraction of the text of code blocks verbatim, but it is more restrictive about the sorts of tags that can appear in code blocks, so there's some design work needed before that can be dropped in.

@samoht
Copy link
Collaborator

samoht commented Mar 27, 2025

Looks great! Do you mind adding a change entry (or appending your name and PR to the existing one)?

@samoht samoht merged commit 774f28d into realworldocaml:main Mar 31, 2025
3 checks passed
@samoht
Copy link
Collaborator

samoht commented Mar 31, 2025

Thanks!

jonludlam added a commit to jonludlam/opam-repository that referenced this pull request Oct 8, 2025
CHANGES:

#### Added

- Support OCaml 5.4 (realworldocaml/mdx#470, @chetmurthy)

#### Changed

- Improved implementation of handling of skipped blocks in mli/mld
  files (realworldocaml/mdx#466, @jonludlam)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants