Skip to content

Preserve source URL in Markdown render output

What does this MR do?

When rendering Markdown using the various Markdown endpoints in the application, the URL specified in the Markdown source is transformed by the Markdown rendering pipeline for several purposes: security, resolving a URL for rendering, etc. The original URL, as stored in the Markdown source, is lost after this transformation.

This Merge Request preserves the original URL, as stored in the source, in the data-canonical-src attribute. The purpose is allowing the Content Editor to re-generate the image or link definition in the client when serializing the HTML back to Markdown.

See #328641 (closed)

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Himanshu Kapoor

Merge request reports