markright v0.2.4 Markright.Helpers.Flush
Generic handler for flushes. Use as:
defmodule Markright.Parsers.Maillink do
use Markright.Helpers.Flush tag: :br
# the below code is redundant, this functions is generated by `use`,
# the snippet is here to provide a how-to, since `to_ast/3` is overridable
def to_ast(input, fun \\ nil, opts \\ %{}) \
when is_binary(input) and (is_nil(fun) or is_function(fun)) and is_map(opts),
do: astify(input, fun)
end