Astral.Heading (Astral v0.1.6)

Copy Markdown View Source

A Markdown heading discovered while rendering content.

Headings are exposed to layouts through @page.headings and can be used to build a table of contents.

Summary

Types

t()

@type t() :: %Astral.Heading{id: String.t(), level: 1..6, text: String.t()}