We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eda36f commit 2f5e5b3Copy full SHA for 2f5e5b3
stdlib/Markdown/src/render/latex.jl
@@ -101,6 +101,9 @@ function latex(io::IO, md::List)
101
end
102
103
function show(io::IO, ::MIME"text/latex", md::HorizontalRule)
104
+ latex(io, md)
105
+end
106
+function latex(io::IO, md::HorizontalRule)
107
println(io, "\\rule{\\textwidth}{1pt}")
108
109
stdlib/Markdown/test/runtests.jl
@@ -1108,3 +1108,9 @@ let
1108
@test v.content[5].loose
1109
@test !v.content[7].loose
1110
1111
+
1112
+# issue #29995
1113
+let m = Markdown.parse("---"), io = IOBuffer()
1114
+ show(io, "text/latex", m)
1115
+ @test String(take!(io)) == "\\rule{\\textwidth}{1pt}\n"
1116
0 commit comments