Packages

Render Notion.so public API blocks into HTML

Current section

Files

Jump to
notion_renderer lib notion_renderer.ex
Raw

lib/notion_renderer.ex

defmodule NotionRenderer do
@moduledoc """
TODO
"""
def block_to_html(block, opts \\ []) do
blocks = List.wrap(block)
NotionRenderer.Html.blocks_to_html_string(blocks, opts)
end
end