When the library replaces the tab character to replace it with content, it loses the actual tab when rendering. And therfore the right hand side is not aligned correctly.
By markWord("\t", "tab", "") you are replace \t into an empty string, try markWord("\t", "tab", "\t"), it may works, if not, any further discussion is welcome
When the library replaces the tab character to replace it with content, it loses the actual tab when rendering. And therfore the right hand side is not aligned correctly.
Without tab options passed
With tab options passed