xparse instructions and enumitem formatting appear to be lost on pandoc (inline and {{; }} in this case). It's been pointed out conversion from LaTeX to TeX is not possible, so what are the options?
\documentclass{article}
\usepackage{enumitem}
\usepackage{xparse}
\newlist{foo}{enumerate}{1}
\setlist[foo]{label=\arabic), itemjoin={{; }}}
\ExplSyntaxOn
\tl_set:Nn\g__erw_foo_tl{\item \textbf{a}\item b} %
\NewDocumentCommand\Foo{}{\tl_use:N\g__erw_foo_tl}
\NewDocumentCommand\Bar{}{\item \textbf{c}\item d}
\def\Qux{\item \textbf{e}\item f}
\ExplSyntaxOff
\begin{document}
\begin{foo}
\Foo\Bar\Qux
\end{foo}
\end{document}
CLI
$ pandoc -f latex -t plain jobname.tex
E
f

make4ht LaTeX-292.tex && html2text LaTeX-292.html– michal.h21 May 10 '21 at 08:40xparseandenumitem, but\textbfis ignored, and characterÂis inserted before each letter. – Erwann May 10 '21 at 09:52