package mdx

  1. Overview
  2. Docs
Executable code blocks inside markdown files

Install

Dune Dependency

Authors

Maintainers

Sources

mdx-1.4.0.tbz
sha256=66b56a6bee7165498671c5a616acd965975de5cf855c7c114d7f5237a250ebdb
sha512=679d42d54fed29e5aaeb60dc01c23da6e903b976769585da06dc06a4a643fca7836d0999f09d55f6d94125f0ca99ba27b6402f5a6651a16ba5397353d742ec3d

doc/mdx.top/Mdx_top/Part/index.html

Module Mdx_top.Part

type file

The type for files.

val read : string -> file

read f is the file f. It's a costly operations, better to be done once.

val contents : file -> string

contents f is f contents.

val find : file -> part:string option -> string list option

find f ~part returns the lines of the part part in the file f. Return None if f does not contain the part part.

val replace : file -> part:string option -> lines:string list -> file

replace ~file ~part ~lines returns the lines of the file file where the lines of part part have been replaced by lines.

OCaml

Innovation. Community. Security.