SlipshowSourceThe additional string in the two functions below correspond to the warnings
A value of type file_reader, given a path p, outputs:
Ok (Some content) if it could read the file. In this case, the content will be included in the output.Ok None if it decided not to read the file. In this case, the file will be linked, if possible.Error (`Msg m) if it decided to try to read the file, but got an error. In this case, the error is reported, and the file is linked (just as Ok None).val delayed_from_units :
?options:Frontmatter.Global.t ->
?slipshow_js:Uri.t ->
has_speaker_view:bool ->
Ast.units ->
delayedThis 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.
val delayed :
directory:Fpath.t ->
?options:Frontmatter.Global.t ->
?slipshow_js:Uri.t ->
read_file:file_reader ->
has_speaker_view:bool ->
embed_loc:bool ->
Fpath.t ->
delayed * Diagnosis.t Grace.Diagnostic.t listThis 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.
val convert :
directory:Fpath.t ->
?options:Frontmatter.Global.t ->
has_speaker_view:bool ->
?autofocus:bool ->
?slipshow_js:Uri.t ->
?starting_state:starting_state ->
read_file:file_reader ->
embed_loc:bool ->
Fpath.t ->
string * Diagnosis.t Grace.Diagnostic.t listval convert_to_md :
embed_loc:bool ->
read_file:file_reader ->
directory:Fpath.t ->
Fpath.t ->
stringInternal only