View Source Notionex.Renderer behaviour (notionex v0.3.1)

Summary

Callbacks

Link to this callback

render_block(%Notionex.Object.Block{}, map)

View Source
@callback render_block(
  %Notionex.Object.Block{
    archived: term(),
    bookmark: term(),
    breadcrumb: term(),
    bulleted_list_item: term(),
    callout: term(),
    child_database: term(),
    child_page: term(),
    code: term(),
    column: term(),
    column_list: term(),
    created_by: term(),
    created_time: term(),
    divider: term(),
    embed: term(),
    equation: term(),
    file: term(),
    has_children: term(),
    heading_1: term(),
    heading_2: term(),
    heading_3: term(),
    id: term(),
    image: term(),
    in_trash: term(),
    last_edited_by: term(),
    last_edited_time: term(),
    link_preview: term(),
    link_to_page: term(),
    numbered_list_item: term(),
    numbered_list_item_number: term(),
    object: term(),
    paragraph: term(),
    parent: term(),
    pdf: term(),
    quote: term(),
    synced_block: term(),
    table: term(),
    table_of_contents: term(),
    table_row: term(),
    template: term(),
    to_do: term(),
    toggle: term(),
    type: term(),
    unsupported: term(),
    video: term()
  },
  map()
) :: any()
@callback render_rich_text(map()) :: any()