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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 09850b5 commit 03a444a
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
@@ -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}{%
\def\markdownLaTeXTopRule{\toprule}%
\def\markdownLaTeXMidRule{\midrule}%
\def\markdownLaTeXBottomRule{\bottomrule}%
}{%
\def\markdownLaTeXTopRule{\hline}%
\def\markdownLaTeXMidRule{\hline}%
\def\markdownLaTeXBottomRule{\hline}%
}%
}
\markdownSetup{rendererPrototypes={
table = {%

0 comments on commit 03a444a

Please sign in to comment.