Commit 4b0ec0d
Make images clickable when both _src and _link fields exist
Fix bookmarklet rendering to wrap images in anchor tags when both
image source and link URL are present. This enables users to click
on thumbnails to navigate to the linked content.
Changes:
- Check for link companion when rendering images (both array and single values)
- Wrap <img> in <a> tag with target="_blank" if link exists
- Preserve non-clickable image rendering when no link is present
- Apply absolute URL conversion to both image sources and links
Example usage that now creates clickable images:
{
"videos_src": "img@src",
"videos_link": "a@href"
}
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 83576a5 commit 4b0ec0d
1 file changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
999 | | - | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
1000 | 1011 | | |
1001 | 1012 | | |
1002 | 1013 | | |
| |||
1030 | 1041 | | |
1031 | 1042 | | |
1032 | 1043 | | |
1033 | | - | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1034 | 1056 | | |
1035 | 1057 | | |
1036 | 1058 | | |
| |||
0 commit comments