Telegex.Marked v0.0.3 Telegex.Marked.Node View Source

Element nodes in Markdown.

Link to this section Summary

Types

All node types.

t()

Functions

Create a node of type newline wrapped in a list.

Create a node of type newline.

Create a node of type string wrapped in a list.

Create a node of type string.

Link to this section Types

Specs

nodetypes() ::
  :bold
  | :italic
  | :underline
  | :strikethrough
  | :link
  | :inline_code
  | :code_block
  | :newline
  | :string

All node types.

Specs

t() :: %Telegex.Marked.Node{
  children: [t()] | String.t(),
  data: [{atom(), String.t()}] | String.t(),
  type: nodetypes()
}

Link to this section Functions

Specs

newline_children() :: [t()]

Create a node of type newline wrapped in a list.

Specs

newline_node() :: t()

Create a node of type newline.

Specs

string_children(String.t()) :: [t()]

Create a node of type string wrapped in a list.

Specs

string_node(String.t()) :: t()

Create a node of type string.