Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,19 @@ <h2>Nothing to show</h2>
</mat-panel-title>
</mat-expansion-panel-header>
<ng-template matExpansionPanelContent>
<p [innerHTML]="activityDetails.description"></p>
<div
*ngIf="
markdown.render(activityDetails.description);
else ifFileIsNotAMarkdown
">
<p
[innerHTML]="
markdown.render(activityDetails.description)
"></p>
</div>
<ng-template #ifFileIsNotAMarkdown>
<p [innerHTML]="activityDetails.description"></p>
</ng-template>
</ng-template>
</mat-expansion-panel>
<mat-expansion-panel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as d3 from 'd3';
import * as yaml from 'js-yaml';
import { Router } from '@angular/router';
import { MatChip } from '@angular/material/chips';
import * as md from 'markdown-it';

export interface activitySchema {
uuid: string;
Expand Down Expand Up @@ -56,6 +57,7 @@ export class CircularHeatmapComponent implements OnInit {
segment_labels: string[] = [];
activityDetails: any;
showOverlay: boolean;
markdown: md = md();

constructor(
private yaml: ymlService,
Expand Down
Loading