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
2 changes: 1 addition & 1 deletion base/markdown/render/terminal/render.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ end
terminline(io::IO, f::Footnote) = with_output_format(:bold, terminline, io, "[^$(f.id)]")

function terminline(io::IO, md::Link)
terminline(io, md.text)
terminline(io, "$(terminline(md.text)) ($(md.url))")
end

function terminline(io::IO, code::Code)
Expand Down
2 changes: 1 addition & 1 deletion test/markdown.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ World""" |> plain == "Hello\n\n---\n\nWorld\n"

# multiple whitespace is ignored
@test sprint(term, md"a b") == " a b\n"
@test sprint(term, md"[x](https://julialang.org)") == " x\n"
@test sprint(term, md"[x](https://julialang.org)") == " x (https://julialang.org)\n"
@test sprint(term, md"![x](https://julialang.org)") == " (Image: x)\n"

# enumeration is normalized
Expand Down