Skip to content

Commit

Permalink
Merge pull request JuliaLang#14464 from thofma/md
Browse files Browse the repository at this point in the history
Fix markdown plain rendering of horizontal rule
  • Loading branch information
ivarne committed Dec 22, 2015
2 parents 15976b5 + e448ace commit 4493da9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/markdown/render/plain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function plain(io::IO, q::BlockQuote)
end

function plain(io::IO, md::HorizontalRule)
println(io, "" ^ 3)
println(io, "-" ^ 3)
end

plain(io::IO, md) = writemime(io, "text/plain", md)
Expand Down
2 changes: 1 addition & 1 deletion test/markdown.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ foo
@test md"""Hello
---
World""" |> plain == "Hello\n\n–––\n\nWorld\n"
World""" |> plain == "Hello\n\n---\n\nWorld\n"
@test md"[*a*](b)" |> plain == "[*a*](b)\n"
@test md"""
> foo
Expand Down

0 comments on commit 4493da9

Please sign in to comment.