package kkmarkdown

  1. Overview
  2. Docs
A safe markdown engine

Install

Dune Dependency

Authors

Maintainers

Sources

1.1.0.tar.gz
md5=a20517d95590d03ff5b7670323b8b0dd
sha512=97b3faa09e23ab88c5b4dcabe88f29e5c675b6bb4b0c9230ec105a70b01b37b54274cc0ab4a5eed84a754a99e3664e116a7aba6c9697e3669229985f1bf749be

doc/kkmarkdown.lib/Lib/Typ/index.html

Module Lib.TypSource

Type of parsed markdown

Type definition

Sourcetype stack_elt =
  1. | Em
  2. | Strong
  3. | EmStrong
  4. | Strike
  5. | Code
Sourcetype span =
  1. | A of string
  2. | Br
  3. | CharSpan of char
  4. | CharsSpan of string
  5. | StackOpen of stack_elt
  6. | StackClose of stack_elt
  7. | UnicodeSpan of string
  8. | UnsafeA of {
    1. spans : span list;
    }
Sourcetype list_typ =
  1. | Ordered
  2. | Unordered
Sourcetype block =
  1. | CodeBlock of string list
  2. | H1 of span list
  3. | H2 of span list
  4. | H3 of span list
  5. | H4 of span list
  6. | H5 of span list
  7. | H6 of span list
  8. | Hr
  9. | List_ of list_typ * li list
  10. | P of span list
  11. | Quote of t
  12. | UnsafeCodeBlock of {
    1. cb : string list;
    2. classes : string list;
    }
  13. | UnsafeImg of {
    1. alt : string;
    2. classes : string list;
    }
  14. | UnsafeInlineHtml of string list
Sourceand li =
  1. | Li of span list
  2. | LiP of block list
Sourceand t = block list

Pretty printer

Sourceval pp : ?rss:bool -> Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.