From b9b1b001dae9c74dbda72e01510b6e665f228186 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 20 Jan 2014 17:14:38 +0000 Subject: [PATCH] Update Typed Blocks documentation --- .../wikitext/Typed Blocks in WikiText.tid | 30 ++++++------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/editions/tw5.com/tiddlers/wikitext/Typed Blocks in WikiText.tid b/editions/tw5.com/tiddlers/wikitext/Typed Blocks in WikiText.tid index d6c713dd1..6d25e07f2 100644 --- a/editions/tw5.com/tiddlers/wikitext/Typed Blocks in WikiText.tid +++ b/editions/tw5.com/tiddlers/wikitext/Typed Blocks in WikiText.tid @@ -1,5 +1,5 @@ created: 20131205161051792 -modified: 20131205161130352 +modified: 20140120171407764 tags: wikitext title: Typed Blocks in WikiText type: text/vnd.tiddlywiki @@ -7,17 +7,19 @@ type: text/vnd.tiddlywiki WikiText can include blocks of text that are rendered with an explicit ContentType like this: ``` -$$$application/javascript -//This is some JavaScript -var thing = 2 + "one"; +$$$image/svg+xml + + + $$$ ``` This renders as: -$$$application/javascript -//This is some JavaScript -var thing = 2 + "one"; +$$$image/svg+xml + + + $$$ It is also possible to abbreviate the ContentType to a file extension. For example: @@ -38,20 +40,6 @@ $$$.svg $$$ -And, finally, a JSON example: - -``` -$$$.json -{"teapot": "brown","inside":["milk","sugar",23]} -$$$ -``` - -Which renders as: - -$$$.json -{"teapot": "brown","inside":["milk","sugar",23]} -$$$ - Unknown types render as plain text: ```