According to the W3C, you should set the dir attribute on the html element of the document. Which is not possible with an MD document, since the html element is added by the preview processor.
The same article expressly discourages using CSS for direction settings.
So, the more relevant question would be: what are the lang and the dir attributes in the resulting HTML? You can see that by converting the MD file to HTML in DT and then looking at its source (the HTML one’s, that is).
It might be possible to set the direction on the HTML element with a script like this one
document.addEventListener('onDocumentLoad', (e) => {
const htmlElement = document.querySelector('html');
htmlElement.dir = 'rtl';
});
You can put that in a file that you reference in your global DT preferences or you can add it to the top of the MD file inside a script element.
And there’s a language metadata key in MultiMarkDown. You could try to set that to arabic and see if it does anything useful to the html attribute.
There’s also been a thread on language support for MD in the forum: