mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-18 18:29:42 +00:00
3bfab9f9da
This allows embedded blocks of another mime type to appear in a tiddler, useful for syntax highlighting fragments of javascript
14 lines
352 B
Plaintext
14 lines
352 B
Plaintext
title: TypedBlockTests
|
|
|
|
Here's an example of a typed block containing JavaScript source code:
|
|
$$$.js
|
|
return 2+2;
|
|
$$$
|
|
|
|
Here's an example of a typed block containing an SVG image:
|
|
$$$image/svg+xml
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="150" height="100">
|
|
<circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red" />
|
|
</svg>
|
|
$$$
|