markright v0.2.5 Markright.Parsers.Blockquote

Parses the input for the blockquote block.

Examples

iex> input = "Hello
...> — _world_!
...>
...> Other text.
...> "
iex> Markright.Parsers.Blockquote.to_ast(input)
%Markright.Continuation{
  ast: {:blockquote, %{}, [
    "Hello\n — ", {:em, %{}, "world"}, "!"]},
  tail: " Other text.\n "}

Summary

Functions

to_ast(input, fun \\ nil, opts \\ %{})

Callback implementation for Markright.Parser.to_ast/3.