Skip to content

Commit

Permalink
merge integration to validation
Browse files Browse the repository at this point in the history
  • Loading branch information
b4pm-devops committed Aug 27, 2024
2 parents 3c6b8e7 + 9f44b6c commit 3a0ac6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ <h1 mat-dialog-title>{{ parameterName }}</h1>
*ngIf="element.oldValueBlob === false"
style="line-height: 24px; padding-left: 10px"
>
No value
No value or Data is too big to be displayed
</div>
</div>
<div *ngIf="element.changeType === 'scalar' || element.changeType === 'dataset_mapping'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ export class DocumentationComponent implements OnChanges, AfterViewInit {
const footnoteRegex = /\[\^(\d+)\]:\s*(.*)/g;
const inlineFootnoteRegex = /\[\^(\d+)\]/g;
const katexEquationRegex = /\$\$([^\$]+)\$\$/g;
const katex2ndEquationRegex = /(?<![^\s\(])\$(?![\/\\])([^\$]+?)\$/g;

const base64ImageReferenceRegex = /!\[\]\[*.*\]/g;

let footnoteList = '<ol>';
Expand All @@ -186,6 +188,13 @@ export class DocumentationComponent implements OnChanges, AfterViewInit {
return `$$${escapedEquation}$$`;
});

// Display undescore on equations
markdown = markdown.replace(katex2ndEquationRegex, (match, equation) => {
const escapedEquation = equation.replace(/_/g, '\\_');
return `$${escapedEquation}$`;
});


// Find all footnotes and store them in a dictionary
const referencesTitle = "# References";
const referencesTitlePosition = markdown.indexOf(referencesTitle);
Expand Down

0 comments on commit 3a0ac6d

Please sign in to comment.