Avec https://tex.stackexchange.com/a/543984 :
\documentclass{article}
\ifdefined\HCode
\def\pgfsysdriver{pgfsys-dvisvgm4ht.def}
\fi
\usepackage{tikz}
\begin{document}
\tikz\draw (0,0) -- (5,0) node[right] {A};
\end{document}\end{document}
![alt text][1]
[1]: https://texnique.fr/osqa/upfiles/Screen_Shot_2020-08-12_at_22.51.06.png