package quill

  1. Overview
  2. Docs
Interactive REPL and markdown notebooks

Install

dune-project
 Dependency

Authors

Maintainers

Sources

raven-1.0.0.alpha3.tbz
sha256=96d35ce03dfbebd2313657273e24c2e2d20f9e6c7825b8518b69bd1d6ed5870f
sha512=90c5053731d4108f37c19430e45456063e872b04b8a1bbad064c356e1b18e69222de8bfcf4ec14757e71f18164ec6e4630ba770dbcb1291665de5418827d1465

doc/quill.markdown/Quill_markdown/index.html

Module Quill_markdownSource

Markdown notebook format.

Parses markdown files into Quill.Doc.t and renders documents back to markdown. Code blocks become code cells; everything else becomes text cells.

Sourceval of_string : string -> Quill.Doc.t

of_string s parses markdown string s into a document.

Fenced code blocks with a language info string become code cells. All other content between code blocks is merged into text cells. Adjacent non-code content forms a single text cell.

Sourceval to_string : Quill.Doc.t -> string

to_string doc renders doc as a markdown string.

Text cells are emitted verbatim. Code cells are rendered as fenced code blocks. Cell outputs are not included.

Sourceval to_string_with_outputs : Quill.Doc.t -> string

to_string_with_outputs doc renders doc as markdown with outputs.

Like to_string but code cell outputs are serialized between <!-- quill:output --> and <!-- /quill:output --> comment markers after each code block.

Sourcemodule Edit : module type of Edit

Typora-style cursor-aware markdown block segmentation.