Adds underline to hyperlink (fixes #233)

This commit is contained in:
Alicia Sykes 2024-02-27 23:19:43 +00:00
parent 2e4d85cf4f
commit 55b29cbccf
2 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,8 @@ import Icon from "~/components/core/icon";
import type { Priority, Section, Checklist } from '../../types/PSC'; import type { Priority, Section, Checklist } from '../../types/PSC';
import { marked } from "marked"; import { marked } from "marked";
import { useLocalStorage } from "~/hooks/useLocalStorage"; import { useLocalStorage } from "~/hooks/useLocalStorage";
import styles from './psc.module.css';
export default component$((props: { section: Section }) => { export default component$((props: { section: Section }) => {
@ -301,7 +303,7 @@ export default component$((props: { section: Section }) => {
{item.priority} {item.priority}
</div> </div>
</td> </td>
<td dangerouslySetInnerHTML={parseMarkdown(item.details)}></td> <td class={styles.checklistItemDescription} dangerouslySetInnerHTML={parseMarkdown(item.details)}></td>
</tr> </tr>
)} )}
)} )}

View File

@ -3,3 +3,9 @@
/* I couldn't figure out how to do this with Tailwind.... */ /* I couldn't figure out how to do this with Tailwind.... */
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
} }
.checklistItemDescription {
a {
text-decoration: underline;
}
}