package kkmarkdown

  1. Overview
  2. Docs

Block-level rule

type 'state res =
  1. | Go of {
    1. state : 'state;
    2. handle_line : [ `Keep | `Discard ];
    }
  2. | Stop of {
    1. state : 'state;
    2. handle_line : [ `Keep | `Discard | `Left ];
    }
  3. | Die
type trans_f = {
  1. trans_spans : string -> Typ.span list;
  2. trans_spans_from_lines : string list -> Typ.span list;
  3. trans_blocks : string list -> Typ.block list;
}
module type S = sig ... end

Signature for a block-level rule

OCaml

Innovation. Community. Security.