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

Summary

Functions

Link to this function

apply_annotations(rich_text)

View Source
Link to this function

render_block(arg1, opts)

View Source

Renders the paragraph block into HTML.

Example

iex> Notionex.Renderer.HTMLRenderer.render_block(%Notionex.Object.Block{object: "block", type: "paragraph", paragraph: %{"color" => "default","rich_text" => [%{"annotations" => %{"bold" => false,"code" => false,"color" => "default","italic" => false,"strikethrough" => false,"underline" => false},"href" => nil,"plain_text" => "Hello world!","text" => %{"content" => "Hello world!", "link" => nil},"type" => "text"}]}}, %{})
"<p>Hello world!</p>"
Link to this function

update_numbered_list_item_number(block, prev_block)

View Source