@hmcts/ccd-case-ui-toolkit 7.3.49-exui-4150-rc-1 → 7.3.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16290,13 +16290,11 @@ class MarkdownComponent {
|
|
|
16290
16290
|
}
|
|
16291
16291
|
renderUrlToText() {
|
|
16292
16292
|
const renderer = new marked.Renderer();
|
|
16293
|
-
renderer.link = (
|
|
16294
|
-
|
|
16295
|
-
|
|
16296
|
-
if (!text || text === linkHref) {
|
|
16297
|
-
return this.isAllowedUrl(linkHref) ? `<a href="${linkHref}">${linkHref}</a>` : linkHref;
|
|
16293
|
+
renderer.link = (href, title, text) => {
|
|
16294
|
+
if (!text || text === href) {
|
|
16295
|
+
return this.isAllowedUrl(href) ? `<a href="${href}">${href}</a>` : href;
|
|
16298
16296
|
}
|
|
16299
|
-
return this.detectMarkdownLinks(this.content) ? `<a href="${
|
|
16297
|
+
return this.detectMarkdownLinks(this.content) ? `<a href="${href}">${text}</a>` : text;
|
|
16300
16298
|
};
|
|
16301
16299
|
marked.setOptions({
|
|
16302
16300
|
renderer: renderer
|
|
@@ -16331,7 +16329,7 @@ class MarkdownComponent {
|
|
|
16331
16329
|
}], renderUrlToTextFeature: [{
|
|
16332
16330
|
type: Input
|
|
16333
16331
|
}] }); })();
|
|
16334
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber:
|
|
16332
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber: 11 }); })();
|
|
16335
16333
|
|
|
16336
16334
|
class FixedListPipe {
|
|
16337
16335
|
static EMPTY = '';
|