11import { appendHashElement } from '../util/ArrayHash' ;
22import { IgnoreList } from './ignore-list' ;
33import { Progress } from './types' ;
4+ import { MarkdownText } from './markdown-text' ;
45
56export type Data = Record < string , Category > ;
67export type Category = Record < string , Dimension > ;
@@ -13,22 +14,22 @@ export interface Activity {
1314 dimension : string ;
1415 level : number ;
1516 name : string ;
16- description : string ;
17- risk : string ;
18- measure : string ;
17+ description : MarkdownText ;
18+ risk : MarkdownText ;
19+ measure : MarkdownText ;
1920 tags : string [ ] ;
20- implementationGuide : string ;
21+ implementationGuide : MarkdownText ;
2122 difficultyOfImplementation : DifficultyOfImplementation ;
2223 usefulness : number ;
2324 knowledge : number ;
2425 resources : number ;
2526 time : number ;
2627 dependsOn : string [ ] ;
27- comments : string ;
28+ comments : MarkdownText ;
2829 implementation : Implementation [ ] ;
29- evidence : string ;
30+ evidence : MarkdownText ;
3031 teamsEvidence : Object ;
31- assessment : string ;
32+ assessment : MarkdownText ;
3233 references : FrameworkReferences ;
3334 isImplemented : boolean ;
3435 teamsImplemented : Record < string , any > ;
@@ -41,32 +42,6 @@ export interface FrameworkReferences {
4142 openCRE : string [ ] ;
4243}
4344
44- // export interface activityDescription {
45- // level: string;
46- // tags: string[];
47- // activityName: string;
48- // uuid: string;
49- // description: string;
50- // risk: string;
51- // measure: string;
52- // implementationGuide: string;
53- // iso: string[];
54- // iso22: string[];
55- // samm: string[];
56- // openCRE: string[];
57- // knowledge: number;
58- // resources: number;
59- // time: number;
60- // dependsOn: string[];
61- // implementation: Implementation[];
62- // usefulness: number;
63- // evidence: string;
64- // teamsEvidence: Object;
65- // assessment: string;
66- // comments: string;
67- // // isImplemented: boolean;
68- // // teamsImplemented: Record<string, any>;
69- // }
7045export interface Implementation {
7146 name : string ;
7247 tags : string [ ] ;
@@ -241,6 +216,14 @@ export class ActivityStore {
241216 }
242217 // console.log(` - ${categoryName} -- ${dimName} -- ${activityName}`);
243218
219+ // Initiate markdown strings
220+ activity . description = new MarkdownText ( activity . description as unknown as string ) ;
221+ activity . risk = new MarkdownText ( activity . risk as unknown as string ) ;
222+ activity . measure = new MarkdownText ( activity . measure as unknown as string ) ;
223+ activity . comments = new MarkdownText ( activity . comments as unknown as string ) ;
224+ activity . assessment = new MarkdownText ( activity . assessment as unknown as string ) ;
225+ activity . evidence = new MarkdownText ( activity . evidence as unknown as string ) ;
226+
244227 // Rename properties to match the Activity interface
245228 activity . category = categoryName ;
246229 activity . dimension = dimName ;
0 commit comments