Search code examples
pythonjupyter-notebookright-to-left

Support of html tags and right-to-left languages in Jupyter


In ipython notebooks we could add html tags inside markdowns. A useful tag for right-to-left languages was <p dir=rtl> text </p> that conveniently made the text aligned to right.

Is there a way to add html tags or right-to-left paragraph alignment in Jupyter?


Solution

  • It can be done like this:

    <div style="direction:rtl"> Right-to-left text </div>