Skip to content

Fixes notebook markdown failing to render

Eduardo Bonet requested to merge ebonet/fix-markdown-not-showing into master

What does this MR do and why?

Fixes notebook markdown failing to render

In some cases, the source of a cell is just a string, not an array of strings, so it's not necessary to join.

The error can be seen when opening https://gitlab.com/gitlab-org/gitlab-test/-/blob/add-ipython-files/files/ipython/basic.ipynb?ref_type=heads

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

Navigate to http://localhost:3000/gitlab-org/gitlab-test/-/blob/add-ipython-files/files/ipython/basic.ipynb?ref_type=heads, it should display as the fixed version

Edited by Eduardo Bonet

Merge request reports