Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/ex_doc/autolink.ex
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ defmodule ExDoc.Autolink do
["", "", ""] ->
{:local, :..}

["//", "", ""] ->
{:local, :"..//"}

["", ""] ->
{:local, :.}

Expand Down
6 changes: 6 additions & 0 deletions test/ex_doc/autolink_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ defmodule ExDoc.AutolinkTest do

assert autolink("for/1", apps: [:elixir]) ==
~m"[`for/1`](Kernel.SpecialForms.html#for/1)"

# TODO: Remove check once Elixir v1.12+ is required
if Version.match?(System.version(), ">= 1.12.0-rc.0") do
assert autolink("..///3") ==
~m"[`..///3`](https://hexdocs.pm/elixir/Kernel.html#..///3)"
end
end

test "elixir callback" do
Expand Down