package kkmarkdown

  1. Overview
  2. Docs
A safe markdown engine

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=cc8056af18a204bf68d60f50be5a9de7
sha512=452ef12429aa68606e79b82d883275abd05659fec52509dfa18d7de0edcfa0afba7fa9001d9643c5ad072a494ad8593c6f127e382b06d6c224964b3a7969f388

doc/src/kkmarkdown.lib/BlockRule.ml.html

Source file BlockRule.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
type 'state res =
  | Go of { state : 'state; handle_line : [ `Keep | `Discard ] }
  | Stop of { state : 'state; handle_line : [ `Keep | `Discard | `Left ] }
  | Die

type trans_f = {
  trans_spans : string -> Typ.span list;
  trans_spans_from_lines : string list -> Typ.span list;
  trans_blocks : string list -> Typ.block list;
}

module type S = sig
  val is_safe : bool
  val first_char : FirstChar.t

  type state

  val start : string -> state res
  val continue : state -> string -> state res
  val construct : trans_f -> state -> string list -> Typ.block
  val force_construct : bool
end
OCaml

Innovation. Community. Security.