The hyperref package seems to have conflict with titlesec package when compiled with make4ht. The following document is compiled with make4ht. The compiled html file doesn't contain table of contents.
\documentclass{article}
\usepackage{titlesec}
\titleformat{\section}[runin]{\normalfont\bfseries}{\thesection.}{3pt}{}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\section{First}
\section{Second}
\section{Third}
\end{document}
How could this be dealt with? Note that there is no problem when titlesec package and the command titleformat is removed.