MDEx.Sourcepos (MDEx v0.12.0)

Copy Markdown View Source

Source position information for AST nodes.

Contains the start and end positions as {line, column} tuples, both 1-based. These values reflect the original source positions from parsing and are not updated when the AST is modified programmatically.

See https://docs.rs/comrak/latest/comrak/nodes/struct.Sourcepos.html

Summary

Types

t()

@type t() :: %MDEx.Sourcepos{
  end: {pos_integer(), pos_integer()},
  start: {pos_integer(), pos_integer()}
}