@digital-realty/ui-knowledgebase 18.0.4 → 18.0.6-IXUAT-11245.567604

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.
package/README.md CHANGED
@@ -139,7 +139,7 @@ kept generic so it can later be extracted into a shared package for other MFEs):
139
139
  markup). **Self-contained**: depends only on DOMPurify, no app/media logic. Candidate for
140
140
  extraction to a shared lib.
141
141
  - `rewriteMediaUrls(html, mediaBase): string` — KB-specific; runs on the sanitized output.
142
- Resolves relative `/uploads/...` on `<a href>` / `<img src>` against the media base, and
142
+ Resolves relative `/uploads/...`, `/media/...` and `/assets/...` on `<a href>` / `<img src>` against the media base, and
143
143
  gives off-origin links (media downloads, external sites) `target="_blank" rel="noopener noreferrer"`.
144
144
  (Ports the URL logic from GPv1's `renderTextAsJsx`; the old `/api/files?url=` proxy is dropped.)
145
145
  - `toSafeHtml(html, mediaBase): TemplateResult` — composes `sanitize` then `rewriteMediaUrls`