Skip to content

Adds options to hide images from diffs

Eduardo Bonet requested to merge 361843-adds-option-to-hide-images into main

Related to gitlab-org/gitlab#361843 (closed)

Notebooks embed images as base64, and unless we are actively rendering those images they would just make the diff harder to parse. This adds an option that hides the images from the transformed diffs.

Before

%%%% Output: display_data

    ![](data:image/png;base64,this_is_an_invalid_hash_for_testing_purposes)

%%%% Output: display_data

    ![](data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="50"/></svg>)

After

%%%% Output: display_data

    [Hidden Image Output]

%%%% Output: display_data

    [Hidden Image Output]
Edited by Eduardo Bonet

Merge request reports

Loading