Hello,
The method replaceTableVariable doesn't allow to add HTML. We recommend you to do it in two steps: first use replaceTableVariable to add as many rows as needed setting new placeholders and save the document; and then open this new DOCX and use the replaceVariablebyHTMLmethod to replace the placeholders by HTML.
Regards.