Option for zero-width space indents

Currently, there is no way to create an indent and render it in both edit and preview mode. Typora displays four spaces as a code block, as normal, but when pressing the tab key, inserts a 0-width character (​) followed by four spaces. This then renders as a typical first line indent, as though in a rich text format.
I understand why most markdown editors prioritize code syntax over editing, but why not have the best of both worlds?