Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table captions at top of table don't work #34

Closed
bfirsh opened this issue Aug 3, 2017 · 0 comments · Fixed by #210
Closed

Table captions at top of table don't work #34

bfirsh opened this issue Aug 3, 2017 · 0 comments · Fixed by #210

Comments

@bfirsh
Copy link
Member

bfirsh commented Aug 3, 2017

Works:

  \begin{table}[h]
    \begin{tabular}{c c} \toprule
      First column & Second column \\ \toprule
      123 & 456 \\
      234 & 567 \\
      567 & 890  \\
    \end{tabular}
    \caption{Some numbers.}
    \label{table:1}
  \end{table}

Doesn't:

  \begin{table}[h]
    \caption{Some numbers.}
    \begin{tabular}{c c} \toprule
      First column & Second column \\ \toprule
      123 & 456 \\
      234 & 567 \\
      567 & 890  \\
    \end{tabular}
    \label{table:1}
  \end{table}

This should probably be fixed in Pandoc, because that's the point where the label is added to a data-label attribute on the caption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant