DeltaMarkdown (DeltaMarkdown v0.1.0)

View Source

Convert Quill (Slab) Delta document format to Markdown.

This is useful when you want to use the rich text as context in LLM prompts.

Usage

iex> delta_markdown.to_markdown([%{"insert" => "word\n"}])
"word"

Supported features

Inline

  • ✅ Bold - bold
  • ✅ Italic - italic
  • ❌ Link - link

Block

  • ❌ Blockquote - blockquote
  • ✅ Header - header
  • ✅ Indent - indent
  • ✅ List - list

Summary

Functions

Convert Quill Delta to Markdown.

Functions

to_markdown(delta, opts \\ [])

Convert Quill Delta to Markdown.

Options

Examples

iex> to_markdown([%{"insert" => "word\n"}])
"word"