Skip to content
Snippets Groups Projects
Commit c9a56ced authored by dgelessus's avatar dgelessus
Browse files

Fix image display in table generated by :show

Markdown does not allow Markdown syntax to be used inside HTML tags.
Jupyter Notebook previously allowed this, but this was likely fixed in
a recent version. The images are now inserted using <img/> tags instead
of Markdown image syntax, so it should now work without problems.
parent 2f341a5d
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ public final class ShowCommand implements Command {
contents = "";
} else if (entry instanceof Integer) {
padding = imagePadding;
contents = String.format("![%d](%s)", entry, images.get(entry));
contents = String.format("<img alt=\"%d\" src=\"%s\"/>", entry, images.get(entry));
} else if (entry instanceof String) {
padding = stringPadding;
contents = (String)entry;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment