File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ function latex(io::IO, md::Table)
161161 end
162162 println (io, " \\\\ " )
163163 if i == 1
164- println (" \\ hline" )
164+ println (io, " \\ hline" )
165165 end
166166 end
167167 end
Original file line number Diff line number Diff line change @@ -296,6 +296,14 @@ Some **bolded**
296296- list2
297297"""
298298@test latex (book) == " \\ section{Title}\n Some discussion\n\n\\ begin{quote}\n A quote\n\n\\ end{quote}\n\\ subsection{Section \\ emph{important}}\n Some \\ textbf{bolded}\n\n\\ begin{itemize}\n\\ item list1\n\n\n\\ item list2\n\n\\ end{itemize}\n "
299+ table = md """
300+ a | b
301+ ---|---
302+ 1 | 2
303+ """
304+ @test latex (table) ==
305+ " \\ begin{tabular}\n {r | r}\n a & b \\\\\n\\ hline\n 1 & 2 \\\\\n\\ end{tabular}\n "
306+
299307# mime output
300308let out =
301309 """
You can’t perform that action at this time.
0 commit comments