Quillon.Types (Quillon v0.1.0)

Copy Markdown View Source

Type definitions and constants for Quillon nodes and marks.

This module defines the valid node types and marks for Phase 1. These constants are used by other modules for type checking and validation.

Summary

Functions

Returns the list of all mark types.

Returns the list of attributed (tuple) marks.

Returns the list of block node types.

Returns the valid callout types.

Returns the list of container node types.

Returns the valid divider styles.

Returns the valid font_color mark attributes.

Returns the valid heading levels (1-6).

Returns the valid highlight mark attributes.

Returns the list of inline node types.

Returns the valid link mark attributes.

Returns the list of list content node types.

Returns the valid mention mark attributes.

Returns the list of all node types.

Returns the list of simple (atom) marks.

Returns the list of table content node types (table rows).

Returns the list of table row content node types (table cells).

Functions

all_marks()

@spec all_marks() :: [atom()]

Returns the list of all mark types.

attributed_marks()

@spec attributed_marks() :: [atom()]

Returns the list of attributed (tuple) marks.

block_types()

@spec block_types() :: [atom()]

Returns the list of block node types.

callout_types()

@spec callout_types() :: [atom()]

Returns the valid callout types.

container_types()

@spec container_types() :: [atom()]

Returns the list of container node types.

divider_styles()

@spec divider_styles() :: [atom()]

Returns the valid divider styles.

font_color_attrs()

@spec font_color_attrs() :: [atom()]

Returns the valid font_color mark attributes.

heading_levels()

@spec heading_levels() :: Range.t()

Returns the valid heading levels (1-6).

highlight_attrs()

@spec highlight_attrs() :: [atom()]

Returns the valid highlight mark attributes.

inline_types()

@spec inline_types() :: [atom()]

Returns the list of inline node types.

list_content_types()

@spec list_content_types() :: [atom()]

Returns the list of list content node types.

mention_attrs()

@spec mention_attrs() :: [atom()]

Returns the valid mention mark attributes.

node_types()

@spec node_types() :: [atom()]

Returns the list of all node types.

simple_marks()

@spec simple_marks() :: [atom()]

Returns the list of simple (atom) marks.

table_content_types()

@spec table_content_types() :: [atom()]

Returns the list of table content node types (table rows).

table_row_content_types()

@spec table_row_content_types() :: [atom()]

Returns the list of table row content node types (table cells).