Skip to content

Commit b1534e7

Browse files
committed
Allow html in yaml markdown text
1 parent 61f7972 commit b1534e7

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/app/component/activity-description/activity-description.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ export class ActivityDescriptionComponent implements OnInit {
6161

6262
// Expand all function
6363
openAll(): void {
64-
console.log("Expanding all accordions");
6564
this.accordion.forEach(element => {
6665
element.openAll();
6766
});

src/app/model/markdown-text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as md from 'markdown-it';
22

3-
let markdown: md =md();
3+
let markdown: md = md({html: true});
44

55
export class MarkdownText {
66
private plain: string | undefined;

src/assets/Markdown Files/TODO-central-loader.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
- Teams: Bug: On rename team, in-progress activities must be updated
55

66
## Next
7-
- Use DOMPurify to check markdown in MarkdownText before innerHTML
87

98
## ToDo
109
- Heatmap: Fix: asterisk marks when modified
@@ -67,6 +66,7 @@
6766
- Meta.yaml: Allow admins to customize the terms 'Team' and 'Group' (e.g. to 'App' and 'Portfolio')
6867

6968
# Done
69+
- Using Angular's built-in DomSanitizer to check [innerHTML]
7070
- Heatmap: Run Markdown on yaml text
7171
- Matrix: Fix markdown rendering
7272
- Teams: Display some core info about the selected team/group

0 commit comments

Comments
 (0)