package kkmarkdown

  1. Overview
  2. Docs

Module SpanRuleA.AutomaticSource

Link: e.g. <https://kkeun.net>

For simplicity, the https:// prefix is omitted in the translated result, i.e. the example above is translated to

<a href="https://kkeun.net">kkeun.net</a>

Note that the link address must start with https:// or http://.

Sourceval is_safe : bool
Sourceval first_char : FirstChar.t
Sourceval construct : (string -> Typ.span list) -> SpanRule.state -> Typ.span option

Try to apply a rule. The first parameter is the (recursive) function that parses a string as a span list.

OCaml

Innovation. Community. Security.