PreviewerSourceA previewer is meant for "live previewing without flickering".
To create a previewer, you need to provide an HTML element that contains exactly:
When you have a previewer, you can preview a source. For the moment, it has to be a source: you cannot pass it a compiled file.
val preview :
?slipshow_js:Slipshow.Asset.t ->
?frontmatter:Slipshow.Frontmatter.resolved Slipshow.Frontmatter.t ->
?read_file:Slipshow.file_reader ->
previewer ->
string ->
unit