/* Code reads left to right on a right-to-left page too: without this, the
   brackets of `as_manager()` inside a Persian sentence come out reversed. */
[dir="rtl"] .md-typeset code {
  direction: ltr;
  unicode-bidi: isolate;
}

/* The Python API is the code's own English: on a Persian page it still reads
   left to right, or every sentence ends with its full stop at the start. */
[dir="rtl"] .md-typeset .doc {
  direction: ltr;
  text-align: left;
}
