Current section
Files
Jump to
Current section
Files
lib/xberg/inline_type.ex
# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:4e21c71a5751b345136e5ca51dea30bbd3862f7fdc63aa50e6b36be84c454e0e
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule Xberg.InlineType do
@moduledoc "Types of inline elements in Djot."
@typedoc "Types of inline elements in Djot."
@type t ::
:text
| :strong
| :emphasis
| :highlight
| :subscript
| :superscript
| :insert
| :delete
| :code
| :link
| :image
| :span
| :math
| :raw_inline
| :footnote_ref
| :symbol
@text :text
@strong :strong
@emphasis :emphasis
@highlight :highlight
@subscript :subscript
@superscript :superscript
@insert :insert
@delete :delete
@code :code
@link :link
@image :image
@span :span
@math :math
@raw_inline :raw_inline
@footnote_ref :footnote_ref
@symbol :symbol
@doc "Plain text run."
@spec text() :: t()
def text, do: @text
@doc "Bold / strong emphasis."
@spec strong() :: t()
def strong, do: @strong
@doc "Italic / regular emphasis."
@spec emphasis() :: t()
def emphasis, do: @emphasis
@doc "Highlighted text (marker pen)."
@spec highlight() :: t()
def highlight, do: @highlight
@doc "Subscript text."
@spec subscript() :: t()
def subscript, do: @subscript
@doc "Superscript text."
@spec superscript() :: t()
def superscript, do: @superscript
@doc "Inserted text (tracked change)."
@spec insert() :: t()
def insert, do: @insert
@doc "Deleted text (tracked change)."
@spec delete() :: t()
def delete, do: @delete
@doc "Inline code span."
@spec code() :: t()
def code, do: @code
@doc "Hyperlink with URL."
@spec link() :: t()
def link, do: @link
@doc "Inline image reference."
@spec image() :: t()
def image, do: @image
@doc "Generic inline span with optional attributes."
@spec span() :: t()
def span, do: @span
@doc "Inline mathematical expression."
@spec math() :: t()
def math, do: @math
@doc "Raw inline content in a specified format."
@spec raw_inline() :: t()
def raw_inline, do: @raw_inline
@doc "Footnote reference marker."
@spec footnote_ref() :: t()
def footnote_ref, do: @footnote_ref
@doc "Named symbol or emoji shortcode."
@spec symbol() :: t()
def symbol, do: @symbol
end