From 01df157acafa64e5fea7be9a01bea3d0ebbdf935 Mon Sep 17 00:00:00 2001 From: Danny Gleckler Date: Tue, 29 Aug 2023 12:08:36 -0400 Subject: [PATCH] Fix rtl --- src/browser/reset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/reset.js b/src/browser/reset.js index 781c308c..3798d103 100644 --- a/src/browser/reset.js +++ b/src/browser/reset.js @@ -22,7 +22,7 @@ export async function reset(opts = {}) { const defaultOpts = { lang: DEFAULT_LANG, mathjax: {}, - rtl: false, + rtl: !!opts.lang?.startsWith('ar'), viewport: { height: DEFAULT_VIEWPORT_HEIGHT, width: DEFAULT_VIEWPORT_WIDTH