We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8019589 commit 1e7a52cCopy full SHA for 1e7a52c
apps/language_server/lib/language_server/providers/hover.ex
@@ -67,7 +67,7 @@ defmodule ElixirLS.LanguageServer.Providers.Hover do
67
end
68
69
defp add_hexdocs_link(markdown, subject, project_dir) do
70
- [hd | tail] = markdown |> String.split("\n\n")
+ [hd | tail] = markdown |> String.split("\n\n", parts: 2)
71
72
link = hexdocs_link(hd, subject, project_dir)
73
@@ -76,7 +76,7 @@ defmodule ElixirLS.LanguageServer.Providers.Hover do
76
markdown
77
78
_ ->
79
- hd <> " [view on hexdocs](#{link})\n\n" <> Enum.join(tail, "")
+ ["#{hd} [view on hexdocs](#{link})" | tail] |> Enum.join("\n\n")
80
81
82
0 commit comments