mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-28 19:10:28 +00:00
Merge pull request #1504 from tobibeer/tiddler-files-doc
TiddlerFiles — above all fixing the wrong example at the bottom
This commit is contained in:
commit
bb0f960ccc
@ -34,7 +34,7 @@ text: This is the text of my tiddler.
|
||||
|
||||
!! TiddlyWiki `<DIV>` .tiddler files
|
||||
|
||||
Modern `*.tiddler` files look like this:
|
||||
In TiddlyWiki 5, `*.tiddler` files look like this:
|
||||
|
||||
```
|
||||
<div title="AnotherExampleStyleSheet" modifier="blaine" created="201102111106" modified="201102111310" tags="examples" creator="psd">
|
||||
@ -44,7 +44,7 @@ And, weirdly, there is no HTML encoding of the body.</pre>
|
||||
</div>
|
||||
```
|
||||
|
||||
These `*.tiddler` files are therefore not quite the same as the tiddlers found inside a TiddlyWiki HTML file, where the body is HTML encoded in the expected way.
|
||||
These `*.tiddler` files are not exactly the same as the tiddlers inside a TiddlyWiki HTML file where they are HTML encoded.
|
||||
|
||||
Older `*.tiddler` files more closely matched the store format used by TiddlyWiki at the time:
|
||||
|
||||
@ -56,7 +56,7 @@ Older `*.tiddler` files more closely matched the store format used by TiddlyWiki
|
||||
|
||||
!! ~TiddlyWeb-style JSON files
|
||||
|
||||
These files are a straightforward array of hashmaps of name:value fields. Currently only these known fields are processed: `title`, `text`, `created`, `creator`, `modified`, `modifier`, `type` and `tags`.
|
||||
These files are a straightforward array of hashmaps of `name:value` properties. Currently only these known fields are processed: `title`, `text`, `created`, `creator`, `modified`, `modifier`, `type` and `tags`.
|
||||
|
||||
//The ContentType `application/json` is used internally for these files//
|
||||
|
||||
@ -64,7 +64,7 @@ These files are a straightforward array of hashmaps of name:value fields. Curren
|
||||
|
||||
TiddlyWiki HTML files contain a collection of tiddlers encoded in `<DIV>` format.
|
||||
|
||||
The minimal requirement for an HTML file to be importable as an unencrypted TW file is that it has a `<div id="storeArea">` immediately preceding the tiddler DIVs, which must be followed by a `</div>`. For example:
|
||||
For TiddlyWiki to import an unencrypted HTML file, it requires a `<div id="storeArea">` containing tiddler DIVs as explained above. For example:
|
||||
|
||||
```
|
||||
<div id="storeArea">
|
||||
@ -76,4 +76,5 @@ The minimal requirement for an HTML file to be importable as an unencrypted TW f
|
||||
<pre>Text of this tiddler
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user