Packages
earmark_parser
1.4.28
1.4.46
1.4.45
1.4.44
1.4.43
1.4.42
1.4.41
1.4.40
1.4.39
1.4.38
1.4.37
1.4.36
1.4.35
1.4.34
1.4.33
1.4.32
1.4.31
1.4.30
1.4.29
1.4.28
1.4.27
1.4.26
1.4.25
1.4.24
1.4.23
1.4.22
1.4.21
1.4.20
1.4.20-pre
1.4.19
1.4.18
1.4.17
1.4.16
1.4.16-pre2
1.4.16-pre1
1.4.16-pre
1.4.15
1.4.13
1.4.12
1.4.11
1.4.10
1.4.9
1.4.8
AST parser and generator for Markdown
Current section
Files
Jump to
Current section
Files
lib/earmark_parser/line.ex
defmodule EarmarkParser.Line do
@moduledoc false
defmodule Blank do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, content: "")
end
defmodule Ruler do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, type: "- or * or _")
end
defmodule Heading do
@moduledoc false
defstruct(annotation: nil, ial: nil, lnb: 0, line: "", indent: -1, level: 1, content: "inline text")
end
defmodule BlockQuote do
@moduledoc false
defstruct(annotation: nil, ial: nil, lnb: 0, line: "", indent: -1, content: "text")
end
defmodule Indent do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, level: 0, content: "text")
end
defmodule Fence do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, delimiter: "~ or `", language: nil)
end
defmodule HtmlOpenTag do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, tag: "", content: "")
end
defmodule HtmlCloseTag do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, tag: "<... to eol")
end
defmodule HtmlComment do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, complete: true)
end
defmodule HtmlOneLine do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, tag: "", content: "")
end
defmodule IdDef do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, id: nil, url: nil, title: nil)
end
defmodule FnDef do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, id: nil, content: "text")
end
defmodule ListItem do
@moduledoc false
defstruct(
annotation: nil,
ial: nil,
lnb: 0,
type: :ul,
line: "",
indent: -1,
bullet: "* or -",
content: "text",
initial_indent: 0,
list_indent: 0
)
end
defmodule SetextUnderlineHeading do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, level: 1)
end
defmodule TableLine do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, content: "", columns: 0, is_header: false, needs_header: false)
end
defmodule Ial do
@moduledoc false
defstruct(annotation: nil, ial: nil, lnb: 0, line: "", indent: -1, attrs: "", verbatim: "")
end
defmodule Text do
@moduledoc false
defstruct(annotation: nil, lnb: 0, line: "", indent: -1, content: "")
end
end
# SPDX-License-Identifier: Apache-2.0