mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 02:27:19 +00:00
Fixed problem with accidentally using HREF instead of SRC with the IMG tag
Surprisingly, it worked fine with HREF in mode browsers.
This commit is contained in:
parent
6a7f2473db
commit
c91fa95843
@ -33,7 +33,7 @@ exports.macro = {
|
||||
}
|
||||
} else {
|
||||
return [Renderer.ElementNode("img",{
|
||||
href: this.params.src,
|
||||
src: this.params.src,
|
||||
alt: this.params.text,
|
||||
title: this.params.text
|
||||
})];
|
||||
|
@ -1 +1 @@
|
||||
<div data-tiddler-target='Fourth Tiddler' data-tiddler-template='Fourth Tiddler' class='tw-tiddler-frame'>A missing image <img href='Something.jpg'> and a $1 couple of Ç Ç "HTML Entity"</div>
|
||||
<div data-tiddler-target='Fourth Tiddler' data-tiddler-template='Fourth Tiddler' class='tw-tiddler-frame'>A missing image <img src='Something.jpg'> and a $1 couple of Ç Ç "HTML Entity"</div>
|
@ -1 +1 @@
|
||||
<div data-tiddler-target='ThirdTiddler' data-tiddler-template='ThirdTiddler' class='tw-tiddler-frame'>An explicit link <a href='Fourth%20Tiddler' class='tw-tiddlylink tw-tiddlylink-internal tw-tiddlylink-resolves'>Fourth Tiddler</a> and <a href='Fourth%20Tiddler' class='tw-tiddlylink tw-tiddlylink-internal tw-tiddlylink-resolves'>a pretty link</a> and a transclusion <div data-tiddler-target='Fourth Tiddler' data-tiddler-template='Fourth Tiddler' class='tw-tiddler-frame'>A missing image <img href='Something.jpg'> and a Stringy couple of Ç Ç "HTML Entity"</div><br><br><img href='http://placehold.it/350x150'><br></div>
|
||||
<div data-tiddler-target='ThirdTiddler' data-tiddler-template='ThirdTiddler' class='tw-tiddler-frame'>An explicit link <a href='Fourth%20Tiddler' class='tw-tiddlylink tw-tiddlylink-internal tw-tiddlylink-resolves'>Fourth Tiddler</a> and <a href='Fourth%20Tiddler' class='tw-tiddlylink tw-tiddlylink-internal tw-tiddlylink-resolves'>a pretty link</a> and a transclusion <div data-tiddler-target='Fourth Tiddler' data-tiddler-template='Fourth Tiddler' class='tw-tiddler-frame'>A missing image <img src='Something.jpg'> and a Stringy couple of Ç Ç "HTML Entity"</div><br><br><img src='http://placehold.it/350x150'><br></div>
|
Loading…
Reference in New Issue
Block a user