aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-03-21 05:04:48 -0400
committerBobby <[email protected]>2022-03-21 05:04:48 -0400
commitd8363271eef45971d835d9abe9553d9894664f2a (patch)
tree056062c9bb470df5c67ccc6e89d7cba2cff0f853
parent2a37cda2449b625bc49014a63e5bcef8bcab45ff (diff)
downloadluciferreeves.github.io-d8363271eef45971d835d9abe9553d9894664f2a.tar.xz
luciferreeves.github.io-d8363271eef45971d835d9abe9553d9894664f2a.zip
Add tabkes to post render
-rw-r--r--routes/posts.js5
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.: