🐛 Fix code blocks in RTL languages

Fixes #164
This commit is contained in:
James Panther
2022-05-01 11:17:30 +10:00
parent 00daa189d0
commit 612cd8f8b4
3 changed files with 8 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
window.addEventListener("DOMContentLoaded", (event) => {
document.querySelectorAll("pre, .highlight-wrapper").forEach((tag) => (tag.dir = "auto"));
});