package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

dune-project
 Dependency

Authors

Maintainers

Sources

b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0

doc/b0.kit/B0_cmark/index.html

Module B0_cmarkSource

cmark support.

Cmark

tool is the cmark tool.

Sourceval cmd : ?validate_utf_8:bool -> ?format:string -> B0_memo.t -> opts:B0_std.Cmd.t -> mds:B0_std.Fpath.t list -> o:B0_std.Fpath.t -> unit

cmd m ~format ~validate_utf_8 ~args ~mds ~o writes to file o the result of processing the CommonMark files mds.

  • format is the output format. It defaults to "html" which outputs a fragment not a full page page (this the --to option).
  • validate_utf_8 is the --validate-utf8 option it defaults to true.
  • args are additional command line arguments you may want to pass to cmark.

Convenience

Sourceval to_html : ?generator:string -> ?lang:string -> ?scripts:string list -> ?styles:string list -> ?title:string -> B0_memo.t -> opts:B0_std.Cmd.t -> mds:B0_std.Fpath.t list -> o_frag:B0_std.Fpath.t -> o:B0_std.Fpath.t -> unit

to_html m ~opts ~mds ~o_frag o compiles the concatenation of mds to an HTML fragment o_frag and then to an HTML page o by invoking cmd with opts and B0_web_page.write; for the documentation of optional arguments see the later.