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:
parent
b7d3101e7c
commit
c5b244bfd0
1 changed files with 1 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue