markright v0.5.1 Markright.Parsers.Img

Parses the input for the link.

Examples

iex> "http://example.com] lovely world!" |> Markright.Parsers.Img.to_ast
%Markright.Continuation{ast: {:img,
       %{alt: "http://example.com", src: "http://example.com"}, nil},
      bag: [tags: [], parser: Markright.Parsers.Generic], fun: nil, tail: " lovely world!"}

iex> "http://example.com Hello my] lovely world!" |> Markright.Parsers.Img.to_ast
%Markright.Continuation{ast: {:figure, %{},
      [{:img, %{alt: "Hello my", src: "http://example.com"}, nil},
       {:figcaption, %{}, "Hello my"}]},
      bag: [tags: [], parser: Markright.Parsers.Generic], fun: nil, tail: " lovely world!"}

Link to this section Summary

Link to this section Functions

Link to this function to_ast(input, plume \\ %Markright.Continuation{})

Callback implementation for Markright.Parser.to_ast/2.