1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-11 07:11:04 +01:00

Render directly embedded image data represented as a string in Jupyter notebooks

Summary: Depends on D19259. Ref T13105. Some examples represent image data as `["da", "ta"]` while others represent it as `"data"`. Accept either.

Test Plan: Rendered example notebooks with both kinds of images.

Reviewers: mydeveloperday

Reviewed By: mydeveloperday

Maniphest Tasks: T13105

Differential Revision: https://secure.phabricator.com/D19260
This commit is contained in:
epriestley 2018-03-26 07:21:24 -07:00
parent b7d3101e7c
commit c5b244bfd0

View file

@ -260,9 +260,8 @@ final class PhabricatorJupyterDocumentEngine
$raw_data = $data[$image_format];
if (!is_array($raw_data)) {
continue;
$raw_data = array($raw_data);
}
$raw_data = implode('', $raw_data);
$content = phutil_tag(