fletcher / peg-multimarkdown

An implementation of MultiMarkdown in C, using a PEG grammar - a fork of jgm's peg-markdown. No longer under active development - see MMD 5.
Other
523 stars 55 forks source link

\bottomrule in middle of tables with multiple sections #19

Closed jcoulombe closed 13 years ago

jcoulombe commented 13 years ago

Hi,

Nit-picking: the \bottomrule before Category B should be a \midrule for better spacing and line width.

$ cat tableParts.txt 
[caption][label]
| Category | Item   | Price ($) |
|----------|--------|-----------|
| A        | Small  | 1         |
|          | Large  | 10        |

| B        | Small  | 100       |
|          | Large  | 1000      |

$ multimarkdown -t latex tableParts.txt 
\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\caption{caption}
\label{label}
\begin{tabular}{@{}lll@{}} \\ \toprule
Category &Item &Price (\$)  \\
\midrule
A &Small &1  \\
&Large &10  \\

\bottomrule
B &Small &100  \\
&Large &1000  \\

\bottomrule

\end{tabular}
\end{minipage}
\end{table}
fletcher commented 13 years ago

Not nit-picking. That was a bug. ;)

Fixed in latest development commit