diff --git a/modules/fbs-core/web/angular.json b/modules/fbs-core/web/angular.json index 7a46e2abf..e8f2362c7 100644 --- a/modules/fbs-core/web/angular.json +++ b/modules/fbs-core/web/angular.json @@ -23,8 +23,16 @@ "polyfills": "src/polyfills.ts", "tsConfig": "src/tsconfig.app.json", "assets": ["src/favicon.ico", "src/assets", { "glob": "**/*", "input": "node_modules/katex/dist", "output": "." }], - "styles": ["src/theme.scss", "src/styles.scss"], - "scripts": ["node_modules/marked/marked.min.js"], + "styles": [ + "src/theme.scss", + "src/styles.scss", + "node_modules/katex/dist/katex.min.css" + ], + "scripts": [ + "node_modules/marked/marked.min.js", + "node_modules/katex/dist/katex.min.js", + "node_modules/katex/dist/contrib/auto-render.min.js" + ], "aot": false, "vendorChunk": true, "extractLicenses": false, diff --git a/modules/fbs-core/web/package-lock.json b/modules/fbs-core/web/package-lock.json index 6544a48ca..8674625ba 100644 --- a/modules/fbs-core/web/package-lock.json +++ b/modules/fbs-core/web/package-lock.json @@ -29,6 +29,8 @@ "chart.js": "^2.9.4", "file-saver": "^2.0.5", "i18next-browser-languagedetector": "^7.1.0", + "katex": "^0.16.11", + "marked": "^15.0.2", "mathlive": "^0.98.5", "ng2-charts": "^2.4.3", "ngx-cookie-service": "^14.0.1", @@ -10453,15 +10455,16 @@ } }, "node_modules/katex": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.0.tgz", - "integrity": "sha512-wPRB4iUPysfH97wTgG5/tRLYxmKVq6Q4jRAWRVOUxXB1dsiv4cvcNjqabHkrOvJHM1Bpk3WrgmllSO1vIvP24w==", + "version": "0.16.11", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.11.tgz", + "integrity": "sha512-RQrI8rlHY92OLf3rho/Ts8i/XvjgguEjOkO1BEXcU3N8BqPpSzBNwV/G0Ukr+P/l3ivvJUE/Fa/CwbS6HesGNQ==", "funding": [ "https://opencollective.com/katex", "https://github.com/sponsors/katex" ], + "license": "MIT", "dependencies": { - "commander": "^8.0.0" + "commander": "^8.3.0" }, "bin": { "katex": "cli.js" @@ -10842,14 +10845,15 @@ } }, "node_modules/marked": { - "version": "4.0.18", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.0.18.tgz", - "integrity": "sha512-wbLDJ7Zh0sqA0Vdg6aqlbT+yPxqLblpAZh1mK2+AO2twQkPywvvqQNfEPVwSSRjZ7dZcdeVBIAgiO7MMp3Dszw==", + "version": "15.0.2", + "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.2.tgz", + "integrity": "sha512-85RUkoYKIVB21PbMKrnD6aCl9ws+XKEyhJNMbLn206NyD3jbBo7Ec7Wi4Jrsn4dV1a2ng7K/jfkmIN0DNoS41w==", + "license": "MIT", "bin": { "marked": "bin/marked.js" }, "engines": { - "node": ">= 12" + "node": ">= 18" } }, "node_modules/mathlive": { @@ -11387,6 +11391,7 @@ "version": "14.0.1", "resolved": "https://registry.npmjs.org/ngx-markdown/-/ngx-markdown-14.0.1.tgz", "integrity": "sha512-y5CY4e0QM0uR6+MvU1rnh1Ks+rku14309kVVojyXLcWl4zlrt8VAYCcf/+A+8z/IDOaz38yTrxNBnvYDJzNzYA==", + "license": "MIT", "dependencies": { "@types/marked": "^4.0.3", "clipboard": "^2.0.11", @@ -11405,6 +11410,18 @@ "zone.js": "^0.11.4" } }, + "node_modules/ngx-markdown/node_modules/marked": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 12" + } + }, "node_modules/ngx-markdown/node_modules/tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", diff --git a/modules/fbs-core/web/package.json b/modules/fbs-core/web/package.json index fc483f575..51e0b9af3 100644 --- a/modules/fbs-core/web/package.json +++ b/modules/fbs-core/web/package.json @@ -34,6 +34,8 @@ "chart.js": "^2.9.4", "file-saver": "^2.0.5", "i18next-browser-languagedetector": "^7.1.0", + "katex": "^0.16.11", + "marked": "^15.0.2", "mathlive": "^0.98.5", "ng2-charts": "^2.4.3", "ngx-cookie-service": "^14.0.1", diff --git a/modules/fbs-core/web/src/app/page-components/task-detail/task-detail.component.html b/modules/fbs-core/web/src/app/page-components/task-detail/task-detail.component.html index aecfcfeb3..0170c3661 100644 --- a/modules/fbs-core/web/src/app/page-components/task-detail/task-detail.component.html +++ b/modules/fbs-core/web/src/app/page-components/task-detail/task-detail.component.html @@ -86,7 +86,7 @@