| 1 | [image-inlinemacro] |
| 2 | <span class="image{role? {role}}"> |
| 3 | <a class="image" href="{link}"> |
| 4 | {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{h |
| 5 | eight}"}{title? title="{title}"}> |
| 6 | {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"} |
| 7 | {data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\"data:'+mimetypes.guess_type(r'{target}')[0]+';base64,'); print(base64.encodebytes(sys.stdin.buffer.read()).decode())" < "{eval:os.path.join(r"{imagesdir=}",r"{target}")}"}"> |
| 8 | {link#}</a> |
| 9 | </span> |
| 10 | |
| 11 | [image-blockmacro] |
| 12 | <div class="imageblock{style? {style}}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}> |
| 13 | <div class="content"> |
| 14 | <a class="image" href="{link}"> |
| 15 | {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}> |
| 16 | {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} |
| 17 | {data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\"data:'+mimetypes.guess_type(r'{target}')[0]+';base64,'); print(base64.encodebytes(sys.stdin.buffer.read()).decode())" < "{eval:os.path.join(r"{imagesdir=}",r"{target}")}"}"> |
| 18 | {link#}</a> |
| 19 | </div> |
| 20 | <div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div> |
| 21 | </div> |