   end
 
   test "DOCL request for defmacro" do
-    assert capture_io(fn ->
+    output = capture_io(fn ->
       Docl.process(["defmacro", [], []])
-    end) =~ """
+    end)
+    [docs, _types] = output |> String.split("\u000B")
+
+    assert docs =~ """
     > Kernel.defmacro(call, expr \\\\\\\\ nil)
 
     Defines a macro with the given name and body.

          IO.puts \"It works\"
        end


    """
  end


        iex> List.flatten([1, [[2], 3]], [4, 5])
        [1, 2, 3, 4, 5]

    """
  end

  test "DOCL request for MyCustomList.flatten with alias" do
    output = capture_io(fn ->
      Docl.process(["MyCustomList.flatten", [], [{MyCustomList, List}]])
    end)
    [docs, _types] = output |> String.split("\u000B")

    assert docs =~ """
    > List.flatten(list)

    ### Specs
