1- import { Component , Input , OnChanges , SimpleChanges } from '@angular/core' ;
1+ import { Component , Input } from '@angular/core' ;
22import { MetadataValue } from '../../../core/shared/metadata.models' ;
33import { environment } from '../../../../environments/environment' ;
44
@@ -11,7 +11,7 @@ import { environment } from '../../../../environments/environment';
1111 styleUrls : [ './metadata-values.component.scss' ] ,
1212 templateUrl : './metadata-values.component.html'
1313} )
14- export class MetadataValuesComponent implements OnChanges {
14+ export class MetadataValuesComponent {
1515
1616 /**
1717 * The metadata values to display
@@ -29,17 +29,11 @@ export class MetadataValuesComponent implements OnChanges {
2929 @Input ( ) label : string ;
3030
3131 /**
32- * Whether this metadata should be rendered with markdown.
32+ * Whether the {@link MarkdownPipe} should be used to render these metadata values.
33+ * This will only have effect if {@link MarkdownConfig#enabled} is true.
34+ * Mathjax will only be rendered if {@link MarkdownConfig#mathjax} is true.
3335 */
3436 @Input ( ) enableMarkdown = false ;
3537
36- /**
37- * This variable will be true if this metadata should be rendered with markdown, and if markdown is enabled in the
38- * environment config.
39- */
40- renderMarkdown = false ;
41-
42- ngOnChanges ( changes : SimpleChanges ) : void {
43- this . renderMarkdown = ! ! environment . enableMarkdown && this . enableMarkdown ;
44- }
38+ env = environment ;
4539}
0 commit comments