Skip to content

Commit

Permalink
Be lazy about what commands to use for default LaTeX table rules
Browse files Browse the repository at this point in the history
Progresses #90.
  • Loading branch information
Witiko committed Feb 28, 2022
1 parent 09850b5 commit cd3a8f4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -21345,14 +21345,16 @@ end
\newtoks\markdownLaTeXTable
\newtoks\markdownLaTeXTableAlignment
\newtoks\markdownLaTeXTableEnd
\@ifpackageloaded{booktabs}{
\let\markdownLaTeXTopRule\toprule
\let\markdownLaTeXMidRule\midrule
\let\markdownLaTeXBottomRule\bottomrule
}{
\let\markdownLaTeXTopRule\hline
\let\markdownLaTeXMidRule\hline
\let\markdownLaTeXBottomRule\hline
\AtBeginDocument{%
\@ifpackageloaded{booktabs}{%
\let\markdownLaTeXTopRule\toprule
\let\markdownLaTeXMidRule\midrule
\let\markdownLaTeXBottomRule\bottomrule
}{%
\let\markdownLaTeXTopRule\hline
\let\markdownLaTeXMidRule\hline
\let\markdownLaTeXBottomRule\hline
}%
}
\markdownSetup{rendererPrototypes={
table = {%
Expand Down

0 comments on commit cd3a8f4

Please sign in to comment.