diff options
| -rw-r--r-- | routes/posts.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routes/posts.js b/routes/posts.js index 00b092f..2d00202 100644 --- a/routes/posts.js +++ b/routes/posts.js @@ -55,6 +55,11 @@ router.get("/posts/:id", function (req, res) { const autoRenderScript = ` <script> document.addEventListener("DOMContentLoaded", function() { + const tables = document.getElementsByTagName("table"); + for (let i = 0; i < tables.length; i++) { + tables[i].classList.add("table"); + tables[i].classList.add("table-bordered"); + } renderMathInElement(document.getElementById("content"), { // customised options // • auto-render specific keys, e.g.: |
