Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes rendering for checkboxes #1155

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/app/shared/lib/marked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export function markedOptionsFactory(): MarkedOptions {
return html.replace(/^<a /, '<a target="_blank" ');
};

renderer.checkbox = (checked) => {
return checked ? '<i class="fa-solid fa-square-check"></i> ' : '<i class="fa-solid fa-square"></i> ';
};

return {
renderer,
gfm: true,
Expand Down
9 changes: 9 additions & 0 deletions src/assets/fontawesome/css/fontawesome.min.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/assets/fontawesome/css/solid.min.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*!
* Font Awesome Free 6.3.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2023 Fonticons, Inc.
*/
:host,:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.ttf) format("truetype")}.fa-solid,.fas{font-weight:900}
Binary file added src/assets/fontawesome/webfonts/fa-solid-900.ttf
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* You can add global styles to this file, and also import other style files */
@import "./assets/fontawesome/css/fontawesome.min.css";
@import "./assets/fontawesome/css/solid.min.css";

html,
body {
margin: 0;
Expand Down