org v0.1.1 Org.Paragraph

Represents an uninterrupted list of lines. Paragraphs are separated by one or more newlines.

Example:

iex> doc = Org.Parser.parse("Foo\nBar\n\nBaz")
iex> doc.contents
[%Org.Paragraph{lines: ["Foo", "Bar"]}, %Org.Paragraph{lines: ["Baz"]}]

Link to this section Summary

Functions

Constructs a new paragraph from given list of lines

Prepends a line to the list of lines. Used by the parser

Link to this section Types

Link to this type t()
t() :: %Org.Paragraph{lines: [String.t()]}

Link to this section Functions

Link to this function new(lines)
new([String.t()]) :: t()

Constructs a new paragraph from given list of lines

Link to this function prepend_line(paragraph, line)
prepend_line(t(), String.t()) :: t()

Prepends a line to the list of lines. Used by the parser.