# Pandoc Markdown Table header background Color

I am using pandoc markdown to convert my documents to pdf. I have tables in the document that required formatting. I was able to create alternative colors for rows. However, I am unable to change the background color of the table heading. I believe pandoc using longtable and booktabs in the background. Is there any style or hooks that I can created in order to get this resolved? I tried with pandoc-filters and I could not succeed as the filter crashed on me.

I tried to create a .tex file out of the markdown and apparently I am unable to get that working.

Any help appreciated. Thanks in advance.

Edit (10/11/2017)

\subsection{Definitions, Acronyms and
Abbreviations}\label{definitions-acronyms-and-abbreviations}

\begin{longtable}[]{@{}lll@{}}
\toprule
\textbf{\#} & \textbf{Acronym} & \textbf{Definition}\tabularnewline
\midrule
1 & App & Application\tabularnewline
2 & xxx & XXXXXX\tabularnewline
3 & yyy & YYYYYYYY\tabularnewline
4 & SDK & Software Development Kit\tabularnewline
\bottomrule
\end{longtable}


Template

%
% tables
%
$if(tables)$
\usepackage{longtable,booktabs}

\renewcommand{\arraystretch}{1.2} % table spacing
\usepackage{longtable}\rowcolors{3}{white!100}{feeblegrey!100}
\arrayrulecolor{white}

$endif$

• Does replacing \rowcolors{3}{white!100}{feeblegrey!100} with \rowcolors{1}{white!100}{feeblegrey!100} in the template do what you want? – Clément Oct 11 '17 at 19:37