     |> Kernel.<>("\u2026")
   end
 
-  defp do_generate_preview(_html, _), do: ""
+  defp do_generate_preview(_html_tree, _), do: ""
 end

    |> Kernel.<>("\u2026")
  end

  defp do_generate_preview(html, {:words, l}) do
    html
    |> Floki.text(sep: " ")
    |> String.split(~r/\s/, trim: true)
    |> Enum.take(l)

    |> Kernel.<>("\u2026")
  end

  defp do_generate_preview(html_tree, {:paragraphs, l}) do
    html_tree
    |> Floki.find("p")
    |> Enum.take(l)
    |> Enum.map(&(&1 |> Floki.text() |> String.trim()))
