1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-01 01:33:16 +00:00

Fixed default type for unknown typed text blocks

This commit is contained in:
Jeremy Ruston 2012-03-03 18:07:47 +00:00
parent 4999a3b729
commit 26b5fc4a6d
2 changed files with 12 additions and 1 deletions

View File

@ -414,7 +414,7 @@ var rules = [
oldNextMatch = w.nextMatch,
oldChildren = w.children,
oldDependencies = w.dependencies,
parseTree = w.store.parseText(mimeType,content);
parseTree = w.store.parseText(mimeType,content,{defaultType: "text/plain"});
w.output = oldOutput;
w.source = oldSource;
w.nextMatch = oldNextMatch;

View File

@ -42,3 +42,14 @@ Which renders as:
$$$.json
{"teapot": "brown","inside":["milk","sugar",23]}
$$$
Unknown types render as plain text:
{{{
$$$text/unknown
Some plain text, which will not be //formatted//.
$$$
}}}
Which renders as:
$$$text/unknown
Some plain text, which will not be //formatted//.
$$$