Coelho.Schema.Default (coelho v0.1.0)

Copy Markdown View Source

The schema Coelho ships with.

It covers what an application typically needs out of the box — paragraphs, headings, lists, quotes, code blocks, images and the usual inline marks — and is meant to be copied and adapted rather than extended in place.

The schema is built once and kept in :persistent_term, since it is immutable and read on every render.

Summary

Functions

Builds the default schema without consulting the cache.

Returns the default schema, building it on first use.

Functions

build()

@spec build() :: Coelho.Schema.t()

Builds the default schema without consulting the cache.

schema()

@spec schema() :: Coelho.Schema.t()

Returns the default schema, building it on first use.