diff --git a/package.json b/package.json
index f770c08..a43e54b 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,7 @@
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/eslint": "^8.56.7",
+ "@types/katex": "^0.16.7",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.36.0",
@@ -35,7 +36,8 @@
},
"type": "module",
"dependencies": {
- "@fontsource/josefin-sans": "^5.0.20"
+ "@fontsource/josefin-sans": "^5.0.20",
+ "katex": "^0.16.10"
},
"engines": {
"node": "^20.9.0"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d62295e..d8a58fe 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -11,6 +11,9 @@ importers:
'@fontsource/josefin-sans':
specifier: ^5.0.20
version: 5.0.20
+ katex:
+ specifier: ^0.16.10
+ version: 0.16.10
devDependencies:
'@fontsource/fira-mono':
specifier: ^4.5.10
@@ -30,6 +33,9 @@ importers:
'@types/eslint':
specifier: ^8.56.7
version: 8.56.10
+ '@types/katex':
+ specifier: ^0.16.7
+ version: 0.16.7
eslint:
specifier: ^9.0.0
version: 9.4.0
@@ -421,6 +427,9 @@ packages:
'@types/json-schema@7.0.15':
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
+ '@types/katex@0.16.7':
+ resolution: {integrity: sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==}
+
'@types/pug@2.0.10':
resolution: {integrity: sha512-Sk/uYFOBAB7mb74XcpizmH0KOR2Pv3D2Hmrh1Dmy5BmK3MpdSa5kqZcg6EKBdklU0bFXX9gCfzvpnyUehrPIuA==}
@@ -600,6 +609,10 @@ packages:
color-name@1.1.4:
resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
+ commander@8.3.0:
+ resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}
+ engines: {node: '>= 12'}
+
concat-map@0.0.1:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
@@ -912,6 +925,10 @@ packages:
json-stable-stringify-without-jsonify@1.0.1:
resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
+ katex@0.16.10:
+ resolution: {integrity: sha512-ZiqaC04tp2O5utMsl2TEZTXxa6WSC4yo0fv5ML++D3QZv/vx2Mct0mTlRx3O+uUkjfuAgOkzsCmq5MiUEsDDdA==}
+ hasBin: true
+
keyv@4.5.4:
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
@@ -1726,6 +1743,8 @@ snapshots:
'@types/json-schema@7.0.15': {}
+ '@types/katex@0.16.7': {}
+
'@types/pug@2.0.10': {}
'@typescript-eslint/eslint-plugin@8.0.0-alpha.24(@typescript-eslint/parser@8.0.0-alpha.24(eslint@9.4.0)(typescript@5.4.5))(eslint@9.4.0)(typescript@5.4.5)':
@@ -1944,6 +1963,8 @@ snapshots:
color-name@1.1.4: {}
+ commander@8.3.0: {}
+
concat-map@0.0.1: {}
confbox@0.1.7: {}
@@ -2283,6 +2304,10 @@ snapshots:
json-stable-stringify-without-jsonify@1.0.1: {}
+ katex@0.16.10:
+ dependencies:
+ commander: 8.3.0
+
keyv@4.5.4:
dependencies:
json-buffer: 3.0.1
diff --git a/src/app.html b/src/app.html
index 77a5ff5..7d176ab 100644
--- a/src/app.html
+++ b/src/app.html
@@ -4,6 +4,8 @@
+
+
%sveltekit.head%