Skip to content

Commit

Permalink
Define text/latex printing of HorizontalRule with the latex function, f…
Browse files Browse the repository at this point in the history
…ix #29995.
  • Loading branch information
fredrikekre committed Nov 13, 2018
1 parent b4d8795 commit 9e15d99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/Markdown/src/render/latex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ function latex(io::IO, md::List)
end

function show(io::IO, ::MIME"text/latex", md::HorizontalRule)
latex(io, md)
end
function latex(io::IO, md::HorizontalRule)
println(io, "\\rule{\\textwidth}{1pt}")
end

Expand Down

0 comments on commit 9e15d99

Please sign in to comment.