gleebook_web/components

Values

pub fn callout(
  children: List(element.Element(msg)),
) -> element.Element(msg)

A callout now takes already-rendered children instead of a plain string, so bold / links / code inside a blockquote survive.

pub fn code_block(
  language: String,
  raw_code: String,
) -> element.Element(msg)
pub fn youtube_embed(
  id: String,
  title: String,
) -> element.Element(msg)
pub fn youtube_id(url: String) -> option.Option(String)

Pull the 11-char id out of any common YouTube URL shape.

Search Document