Module SlipshowSource

Sourcetype asset =
  1. | Local of {
    1. mime_type : string option;
    2. content : string;
    }
  2. | Remote of string
Sourcetype starting_state = int * string
Sourcetype delayed
Sourceval delayed_to_string : delayed -> string
Sourceval string_to_delayed : string -> delayed
Sourceval delayed : ?math_link:asset -> ?css_links:asset list -> ?theme:[ `Builtin of Themes.t | `External of asset ] -> ?slipshow_js_link:asset -> ?resolve_images:(string -> asset) -> string -> delayed

This function is used to delay the decision on the starting state. It allows to run convert server-side (which is useful to get images and so on) but let the previewer decide on the starting state.

Sourceval add_starting_state : delayed -> starting_state option -> string
Sourceval convert : ?starting_state:starting_state -> ?math_link:asset -> ?theme:[ `Builtin of Themes.t | `External of asset ] -> ?css_links:asset list -> ?slipshow_js_link:asset -> ?resolve_images:(string -> asset) -> string -> string
Sourceval convert_to_md : string -> string