# `PhoenixBlog.Web.BlogComponents`
[🔗](https://github.com/lalabuy948/phoenix_blog/blob/v0.1.7/lib/phoenix_blog/web/blog_components.ex#L1)

Components for rendering Editor.js blog content as HTML.

# `extract_excerpt`

Extracts a plain-text excerpt from a post's Editor.js body.

Returns the first paragraph's text, stripped of HTML tags and truncated.

    iex> extract_excerpt(post)
    "This is the beginning of the post..."

    iex> extract_excerpt(post, 100)
    "Shorter excerpt..."

# `render_editor_blocks`

## Attributes

* `blocks` (`:list`) (required)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
