I just found that there is an html5 tag dir=auto that simply works in most situations.
For example I wrote this html
<html>
<body>
<p dir="auto">Write this جمله چپ به راست text left-to-right!</p>
<p dir="auto">این RTL sentence جمله را از راست به چپ بنویس</p>
</body>
</html>
And pasted it in a simple html editor and it works perfectly fine
Could we use the same thing in discourse @sam?
