mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-06 02:30:46 -08:00
Text-Slicer: Add support for static rendering of external images
This commit is contained in:
parent
5faba15446
commit
2d9471fe3b
1 changed files with 10 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue