Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
d146f6d
Add markdown integration test
davesnx Mar 7, 2025
aa56f99
Add markdown derived from html output
davesnx Mar 7, 2025
b7ed9f5
Enable odoc_markdown in the cli
davesnx Mar 7, 2025
fad39e0
We have titles working in markdown
davesnx Mar 7, 2025
62c5a11
Fix inlines
davesnx Mar 7, 2025
839c8c2
Most of the blocks minimally supported
davesnx Mar 18, 2025
3086808
Support Description
davesnx Mar 18, 2025
fa75269
Improve carm tests for markdown
davesnx Mar 18, 2025
7120383
Add documentSrc support
davesnx Mar 19, 2025
bceb144
Inline code blocks into one line
davesnx Apr 4, 2025
c7851bd
Fix most printing issues on markdown
davesnx Apr 4, 2025
dc4c53d
Fix markdown links
davesnx Apr 4, 2025
bdabf64
Add library for in tests
davesnx Apr 4, 2025
5bb4653
Remove toc, sidebar and use_katex from markddown2
davesnx Apr 28, 2025
eba7753
Abstract block_table and remove opens
davesnx Apr 30, 2025
719b4eb
Render header and preamble in page
davesnx Apr 30, 2025
6cf048a
Make header part of the block list
davesnx Apr 30, 2025
6f1aea2
Add subpages in markdown test
davesnx Apr 30, 2025
467d822
Bring back filepath but unsure why
davesnx Apr 30, 2025
c4ec624
Add header into markdown with belt test
davesnx Apr 30, 2025
76be729
Add blank lines on each heading
davesnx May 1, 2025
563d062
ol start at 1
davesnx May 1, 2025
12e45c7
Remove emph level
davesnx May 1, 2025
cc601b9
Add blank lines after each paragraph
davesnx May 1, 2025
9707a7a
Remove useless comment on Linebreak
davesnx May 1, 2025
32f1d65
Remove generate source comment for markdown
davesnx May 1, 2025
82d1f2a
Merge branch 'master' of github.com:/ocaml/odoc into markdown-output
davesnx May 1, 2025
faee0dc
Remove linebreak test
davesnx May 1, 2025
d03bd56
Add source_page and add a comment about untested
davesnx May 1, 2025
62b23d6
Render inline code snippet when no reference
davesnx May 3, 2025
bc3a307
Remove comment for unresolved
davesnx May 8, 2025
8e2667e
Update snapshots
davesnx May 8, 2025
e1cd5e2
First effort
davesnx May 8, 2025
74b58c1
Expose Config and Generator
davesnx May 8, 2025
8925c54
Install cmarkit on 4.14
davesnx May 8, 2025
f8b767a
remove 'tree' from cram
davesnx May 8, 2025
f053490
Use cppo to hide Generator from dune build
davesnx May 8, 2025
1939a1b
Remove copyright from markdown generation
davesnx May 8, 2025
a6590c4
Simplify rendering
davesnx May 9, 2025
fad3be0
Don't format uchar data
davesnx May 9, 2025
c42bbed
Simplify Render module
davesnx May 9, 2025
fe94b56
Simplify Render module
davesnx May 9, 2025
68654bc
Simplify Link_definition
davesnx Jun 6, 2025
208c855
Remove all failwith since generator can't fail
davesnx Jun 6, 2025
375ab5d
Refactor table rendering to not use Inlines and use Renderer's
davesnx Jun 6, 2025
79e30b4
Add atribution to cmarkit under ISC
davesnx Jun 6, 2025
4ab2f94
Resolve issues/doubts for generation
davesnx Jun 6, 2025
1893edf
Implement source_page in markdown
davesnx Jun 6, 2025
3a27306
Add trimming to remove eof newline
davesnx Jun 6, 2025
7170eb4
Merge branch 'markdown-output' of github.com:davesnx/odoc into vendor…
davesnx Jun 6, 2025
c63125d
Merge pull request #1 from davesnx/vendor-cmarkit
davesnx Jun 6, 2025
fffa002
Remove dependency on opam
davesnx Jun 6, 2025
b0cba73
Remove unused code for cppo and random comment
davesnx Jun 6, 2025
df7f5f1
add include in the tests
davesnx Jul 2, 2025
1eaccae
Check submodule contents in include tests
jonludlam Jul 2, 2025
fcd36d4
apply 926cca100c307818e57281c3d40e98f1975f0f95
davesnx Jul 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion odoc.opam
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ depends: [
"tyxml" {>= "4.4.0"}
"fmt"
"crunch" {>= "1.4.1"}

"ocamlfind" {with-test}
"yojson" {>= "2.1.0" & with-test}
"sexplib0" {with-test}
Expand Down
5 changes: 5 additions & 0 deletions src/markdown2/config.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(* Markdown output configuration *)

type t = { root_url : string option; allow_html : bool }

let make ~root_url ~allow_html () = { root_url; allow_html }
4 changes: 4 additions & 0 deletions src/markdown2/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(library
(name odoc_markdown)
(public_name odoc.markdown)
(libraries odoc_model odoc_document))
Loading