File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,14 @@ defmodule ElixirLS.LanguageServer.MarkdownUtils do
368
368
end
369
369
370
370
if app_vsn do
371
- { app , _vsn } = app_vsn
371
+ app =
372
+ case app_vsn do
373
+ { app , _vsn } ->
374
+ app
375
+
376
+ app when is_atom ( app ) or is_binary ( app ) ->
377
+ app
378
+ end
372
379
373
380
if app in @ all_otp_apps and @ erlang_ex_doc? do
374
381
# TODO not sure hos the docs will handle versions app/vsn does not work as of June 2024
Original file line number Diff line number Diff line change @@ -293,6 +293,12 @@ defmodule ElixirLS.LanguageServer.MarkdownUtilsTest do
293
293
) == "[Up and running](http://example.com/foo.md)"
294
294
end
295
295
296
+ test "extra page unknown app" do
297
+ assert MarkdownUtils . transform_ex_doc_links (
298
+ "[Up](e:unknown_app:foo.md)"
299
+ ) == "[Up](https://hexdocs.pm/unknown_app/foo.html)"
300
+ end
301
+
296
302
if System . otp_release ( ) |> String . to_integer ( ) >= 27 do
297
303
test "erlang extra page" do
298
304
assert MarkdownUtils . transform_ex_doc_links (
You can’t perform that action at this time.
0 commit comments