Earmark v1.3.2 Earmark.Helpers.LookaheadHelpers View Source
Link to this section Summary
Functions
Indicates if the numbered_line passed in leaves an inline code block open
Called to slurp in the lines for a list item.
basically, we allow indents and blank lines, and
we allow text lines only after an indent (and initially)
We also slurp in lines that are inside a multiline inline
code block as indicated by pending
returns false if and only if the line closes a pending inline code without opening a new one. The opening backtix are passed in as second parameter. If the function does not return false it returns the (new or original) opening backtix
Link to this section Types
inline_code_continuation() View Source
maybe(t)
View Source
maybe(t) :: t | nil
maybe(t) :: t | nil
message()
View Source
message() :: {message_type(), number(), String.t()}
message() :: {message_type(), number(), String.t()}
message_type()
View Source
message_type() :: :warning | :error
message_type() :: :warning | :error
numbered_line() View Source
read_list_info() View Source
token() View Source
tokens()
View Source
tokens() :: [token()]
tokens() :: [token()]
Link to this section Functions
opens_inline_code(map) View Source
Indicates if the numbered_line passed in leaves an inline code block open.
If so returns a tuple whre the first element is the opening sequence of backticks, and the second the linenumber of the numbered_line
Otherwise {nil, 0}
is returned
read_list_lines(lines, arg, initial_indent) View Source
Called to slurp in the lines for a list item.
basically, we allow indents and blank lines, and
we allow text lines only after an indent (and initially)
We also slurp in lines that are inside a multiline inline
code block as indicated by pending
.
still_inline_code(map, old) View Source
returns false if and only if the line closes a pending inline code without opening a new one. The opening backtix are passed in as second parameter. If the function does not return false it returns the (new or original) opening backtix