1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Fixed problem with Markdown image handling

This commit is contained in:
Jermolene 2014-06-18 14:56:32 +01:00
parent 44cb3bc100
commit b8aedf2ca3

View File

@ -35,7 +35,7 @@ function transformNode(node) {
widget.children = transformNodes(node.slice(p++)); widget.children = transformNodes(node.slice(p++));
// Massage images into the image widget // Massage images into the image widget
if(widget.tag === "img") { if(widget.tag === "img") {
widget.tag = "$image"; widget.type = "image";
if(widget.attributes.alt) { if(widget.attributes.alt) {
widget.attributes.tooltip = widget.attributes.alt; widget.attributes.tooltip = widget.attributes.alt;
delete widget.attributes.alt; delete widget.attributes.alt;