diff --git a/src/app/markdown/markdown.component.ts b/src/app/markdown/markdown.component.ts index 86915d3..dfbbcb1 100644 --- a/src/app/markdown/markdown.component.ts +++ b/src/app/markdown/markdown.component.ts @@ -21,6 +21,14 @@ import { SafeHtml } from '@angular/platform-browser'; styleUrls: ['./markdown.component.less'], templateUrl: './markdown.component.html' }) + +/** + * Implements a markdown component. Important: in order that the checkbox + * feature is working, the rendered content set using the attribute needs + * to be wrapped into a SafeValue instance. This prevents the sanitizer + * to strip the input fields needed for the checkboxes from the rendered + * html. + */ export class MarkdownComponent implements OnChanges, OnInit, AfterViewChecked { @Input() fieldName: string = 'Description';