1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-22 05:13:15 +00:00

Text-Slicer: Add support for static rendering of external images

This commit is contained in:
Jermolene 2015-10-09 17:09:30 +01:00
parent 5faba15446
commit 2d9471fe3b

View File

@ -1,3 +1,13 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/static/image
<$reveal state="!!_canonical_uri" type="match" text="">
`<img src="data:`<$view format="text" field="type"/>`;base64,`<$view format="text" field="text"/>`" class="`{{||$:/plugins/tiddlywiki/text-slicer/templates/static/helpers/classes}}`">`
</$reveal>
<$reveal state="!!_canonical_uri" type="nomatch" text="">
`<img src="`<$text text=<<tv-external-image-path>>/><$view field="title" format="doubleurlencoded"/>`" class="`{{||$:/plugins/tiddlywiki/text-slicer/templates/static/helpers/classes}}`">`
</$reveal>