mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 18:47:20 +00:00
20 lines
510 B
Plaintext
20 lines
510 B
Plaintext
created: 20131228163141555
|
|
modified: 20150221223416000
|
|
tags: Macros [[Core Macros]]
|
|
title: makedatauri Macro
|
|
type: text/vnd.tiddlywiki
|
|
caption: makedatauri
|
|
|
|
The <<.def makedatauri>> [[macro|Macros]] takes a piece of text and an associated ContentType, and returns a corresponding [[data URI|Data URI]].
|
|
|
|
<<.var makedatauri>> is used to implement the <<.mlink datauri>> macro.
|
|
|
|
!! Parameters
|
|
|
|
;text
|
|
: The text to be converted to a data URI
|
|
;type
|
|
: The ContentType of the text
|
|
|
|
<<.macro-examples "makedatauri">>
|