\documentclass{report}

\setcounter{secnumdepth}{6}
\setcounter{tocdepth}{6}

\begin{document}

\ConfigureMark{paragraph}
   {\HCode{<span class="titlemark">}%
     \theparagraph\HCode{</span>}}
\ConfigureMark{subparagraph}
   {\HCode{<span class="titlemark">}%
     \thesubparagraph\HCode{</span>}}
\Configure{paragraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead">}%
    \begingroup\TitleMark\space}
  {\endgroup\HCode{</span>}\par\IgnorePar}
\Configure{subparagraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="subparagraphHead">}%
    \begingroup\TitleMark\space}
  {\endgroup\HCode{</span>}\par\IgnorePar}


\tableofcontents

\chapter{chapter}

\section{section}

\subsection{subsection}

\subsubsection{subsubsection}

\paragraph{paragraph}

\subparagraph{subparagraph}


\end{document}
