and here is the resulting html file -- note the reference link:
<section id="sec:first" data-number="1">
<h1 data-number="11"><span class="header-section-number">11</span> This is a test</h1>
<p>This is the first section, and we should see an offset reference to section <a href="#sec:first">1</a>.</p>
</section>
The offset works as advertised in the latex file:
(header omitted)
%% pandoc-secnos: required package
\usepackage{cleveref}
% pandoc-secnos: section number offset
\setcounter{section}{10}
\author{}
\date{}
\begin{document}
\hypertarget{sec:first}{%
\section{This is a test}\label{sec:first}}
This is the first section, and we should see an offset reference to
\cref{sec:first}.
\end{document}
Here is a markdown file
check.md
:Here is the pandoc command:
and here is the resulting html file -- note the reference link:
The offset works as advertised in the latex file: