Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odoc markup #1465

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Odoc markup #1465

wants to merge 8 commits into from

Conversation

dlesbre
Copy link
Contributor

@dlesbre dlesbre commented May 3, 2024

Add syntax color to:

  • odoc tables (added in odoc 2.3),
  • odoc headings with labels ({1:label heading})
  • code block with attributes (used by mdx).
  • also color {@ocaml attr[ blocks as ocaml instead of verbatim (previously only @{[ block were colored as ocaml).

Here is an example test comment:

(**

{1:label section}

{table
 {tr
  {td {b hello}}
  {th heading}
 }
}

{t
  | hello | there | header | text |
  | --- | :-- | :---: | --:
  | a | b | c | d
}

{@ocaml skip[
   let x = 5
]}

{@notocaml someattribute[
    this is just colored as verbatim
]}

*)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants