Skip to content

Commit

Permalink
Update markdown.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aloccid-iata authored May 21, 2024
1 parent c92482b commit 34d9068
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Visualizer/helpers/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export const markdown = (text: string) => {
return md.renderInline(text);
};

export const markdownRender = (text: string) => {
return md.render(text);
};

export const markdownDescription = (description: string, subtypes: string) => {
let textPopUp = '';
if (description){
Expand All @@ -35,4 +39,4 @@ export const markdownDescription = (description: string, subtypes: string) => {
textPopUp = textPopUp + md.render('**Subtypes**: ' + subtypes.replaceAll('|', ', '))
}
return (textPopUp? textPopUp: 'No Description');
};
};

0 comments on commit 34d9068

Please sign in to comment.