Is \hfill valid in obsidian?

You are right, \hfill can’t be used in inline math enviroment here, thanks