text, user_acc}, opts, {buffer, acc, :parsing}, handler),
- do: do_parse({text, user_acc}, opts, {"", acc <> buffer <> " text, user_acc}, opts, {buffer, acc, :parsing}, type),
+ do: do_parse({text, user_acc}, opts, {"", acc <> buffer <> " text, user_acc}, opts, {buffer, acc, :parsing}, handler),
- do: do_parse({text, user_acc}, opts, {"", acc <> buffer <> " text, user_acc}, opts, {buffer, acc, :parsing}, type),
+ do: do_parse({text, user_acc}, opts, {"", acc <> buffer <> "" <> text, user_acc}, opts, {buffer, acc, :skip}, handler),
- do: do_parse({text, user_acc}, opts, {"", acc <> buffer <> "
", :parsing}, handler)
+ defp do_parse({"" <> text, user_acc}, opts, {buffer, acc, :skip}, type),
+ do: do_parse({text, user_acc}, opts, {"", acc <> buffer <> "", :parsing}, type)
- defp do_parse({"" <> text, user_acc}, opts, {buffer, acc, :skip}, handler),
- do: do_parse({text, user_acc}, opts, {"", acc <> buffer <> "", :parsing}, handler)
+ defp do_parse({"" <> text, user_acc}, opts, {buffer, acc, :skip}, type),
+ do: do_parse({text, user_acc}, opts, {"", acc <> buffer <> "", :parsing}, type)
- defp do_parse({"" <> text, user_acc}, opts, {buffer, acc, :skip}, handler),
- do: do_parse({text, user_acc}, opts, {"", acc <> buffer <> "", :parsing}, handler)
+ defp do_parse({"" <> text, user_acc}, opts, {buffer, acc, :skip}, type),
+ do: do_parse({text, user_acc}, opts, {"", acc <> buffer <> "", :parsing}, type)
- defp do_parse({"<" <> text, user_acc}, opts, {"", acc, :parsing}, handler),
- do: do_parse({text, user_acc}, opts, {"<", acc, {:open, 1}}, handler)
+ defp do_parse({"<" <> text, user_acc}, opts, {"", acc, :parsing}, type),
+ do: do_parse({text, user_acc}, opts, {"<", acc, {:open, 1}}, type)
- defp do_parse({"<" <> text, user_acc}, opts, {"", acc, {:html, level}}, handler) do
- do_parse({text, user_acc}, opts, {"<", acc, {:open, level + 1}}, handler)
+ defp do_parse({"<" <> text, user_acc}, opts, {"", acc, {:html, level}}, type) do
+ do_parse({text, user_acc}, opts, {"<", acc, {:open, level + 1}}, type)
end
- defp do_parse({">" <> text, user_acc}, opts, {buffer, acc, {:attrs, level}}, handler),
+ defp do_parse({">" <> text, user_acc}, opts, {buffer, acc, {:attrs, level}}, type),
do:
do_parse(
{text, user_acc},
opts,
{"", acc <> buffer <> ">", {:html, level}},
- handler
+ type
)
- defp do_parse({<