   # From https://github.com/elixir-lang/elixir/blob/c983b3db6936ce869f2668b9465a50007ffb9896/lib/iex/lib/iex/introspection.ex
 
   alias Kernel.Typespec
+
+  def get_docs_md(mod, nil) do
+    mod_str = module_to_string(mod)
+    title = "> #{mod_str}\n\n"
+    body = case Code.get_docs(mod, :moduledoc) do
+      {_line, false} ->
+        "No documentation found"
+      {_line, doc} ->
+        doc
+    end
+    title <> body
+  end
 
   def get_docs_md(mod, fun) do
     docs = Code.get_docs(mod, :docs)

    end
  end

  defp print_doc_arg({ :\\, _, [left, right] }) do
    print_doc_arg(left) <> " \\\\ " <> Macro.to_string(right)
  end

    Enum.map(specs, &{tag, &1})
  end

end
