omd
omd copied to clipboard
extensible Markdown library and tool in "pure OCaml"
Currently the docs are either missing tags where they contain hidden items or linking to hidden modules. See ocaml/odoc#1091
This is a WIP to add a CST structure that preserves some details of the original markdown syntax. This is a draft PR and still needs a lot of work....
I think we should cut a new release. This will allow users to migrate to the 2.0 version and we will get more bug reports, etc. What needs to be...
Fixes #296 This moves the auto identifiers logic into the AST (when parsing the document). It moves the `auto_identifiers` parameter from the `Omd.to_html` function to the `Omd.{of_channel,of_string}` function. I'm not...
``` > echo '.**.* *' | cmark .**.* * > omd --version 2.0.0.alpha3 > echo '.**.* *' | omd ```
In order to add `id` attributes, `ocaml/ocaml.org` has duplicated the function `Html.to_plain_text`, see: https://github.com/ocaml/ocaml.org/blob/main/tool/ood-gen/lib/tutorial.ml#L28 Therefore, it seems to makes sense to expose this function publicly.
See https://github.com/ocaml/omd/pull/267#discussion_r973599653
Reported in #292 See https://github.com/ocaml/omd/blob/7b59e5926a1f811e1d89b4b37b163a459692d308/src/sexp.ml#L18
This is an umbrella issue for requested extensions to Markdown. In principle there is a desire to support these, but we need to introduce a proper extension API first. -...
This would allow programmatic construction and transformation of markdown, and (in the special case of a no-op transformation) would serve as a markdown pretty printer. Request by @jfrolich on at...