-
Notifications
You must be signed in to change notification settings - Fork 138
Refactor comment parsing to use odoc-parser and cmarkit #1088
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
Changes from 1 commit
620034b
d4824da
c9431bc
a2f91fc
91a1598
8325902
303d6f3
6b07651
f059af2
d0fea98
8406a9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -339,58 +339,58 @@ describe_opt("textDocument/completion", () => { | |
kind: "markdown", | ||
value: outdent`This is an example of a docstring that demonstrates various ocamldoc syntax features. | ||
|
||
### Sections and Labels | ||
#### Sections and Labels | ||
|
||
We can create sections using | ||
|
||
### Section title | ||
#### Section title | ||
|
||
and labels using | ||
|
||
### Section title with label | ||
#### Section title with label | ||
|
||
### Links and Cross-references | ||
#### Links and Cross-references | ||
|
||
External links: [OCaml's official website](https://ocaml.org/) | ||
|
||
### Inline Formatting | ||
#### Inline Formatting | ||
|
||
**Bold**, *Italic*, *Emphasize*, Superscript, Subscript, and \`inline code\` | ||
|
||
### Text Alignment | ||
#### Text Alignment | ||
|
||
Centered text | ||
|
||
Left-aligned text | ||
|
||
Right-aligned text | ||
|
||
### Lists | ||
#### Lists | ||
|
||
1.Ordered list item 1 | ||
2.Ordered list item 2 | ||
|
||
*Unordered list item 1 | ||
*Unordered list item 2 | ||
-Unordered list item 1 | ||
-Unordered list item 2 | ||
|
||
*Unordered list item 1 | ||
*Unordered list item 2 | ||
-Unordered list item 1 | ||
-Unordered list item 2 | ||
|
||
### Code Blocks | ||
#### Code Blocks | ||
|
||
\`\`\` | ||
\`\`\`ocaml | ||
let square x = x * x | ||
let result = square 3 | ||
\`\`\` | ||
|
||
### Verbatim | ||
#### Verbatim | ||
|
||
\`\`\`verb | ||
This text will be displayed verbatim. | ||
No formatting will be applied. | ||
\`\`\` | ||
|
||
### Module List | ||
#### Module List | ||
|
||
*Array | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Module list are still broken There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, for some reason I thought that I should fix only commented stuff. 😅 I'll try to fix it asap. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wow, this is more involved. It didn't work previously so we can fix it later. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I misunderstood the feature. The list is fixed now :) |
||
*List | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that's right, can we assume that every ocamldoc code block is in ocaml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that we default to ocaml when lang header is missing. See: https://ocaml.github.io/odoc/odoc_for_authors.html#ocaml_code_blocks
Also, I've added an explicit test case for this