Skip to content

Commit

Permalink
feat(web): add ngx-markdown for task descriptions (#1706)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zitrone44 authored Nov 21, 2024
1 parent d67f462 commit 4001966
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 11 deletions.
12 changes: 10 additions & 2 deletions modules/fbs-core/web/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
33 changes: 25 additions & 8 deletions modules/fbs-core/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions modules/fbs-core/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
</span>
</div>
<div class="description">
{{ task?.description }}
<markdown [data]="task?.description" katex></markdown>
</div>
<mat-card-content>
<div class="user-input">
Expand Down

0 comments on commit 4001966

Please sign in to comment.