@ebranda: Are you using square brackets for WikiLinks?
Assuming you are using square brackets, (which I don’t assume )…
But you’d end up with ✤Wikilink❖
in your converted document.
Following your example, I’d suggest converting the brackets to an empty HTML element, e.g., [[
to <l>
and ]]
to <r>
.