starting the post with the dir command did not work like i wanted because of the order of how markup is processed by my code.

for a note type of post, normal text needs to start the post. then the dir command can appear wherever.