mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 20:29:10 +00:00
Fixed default type for unknown typed text blocks
This commit is contained in:
parent
4999a3b729
commit
26b5fc4a6d
@ -414,7 +414,7 @@ var rules = [
|
|||||||
oldNextMatch = w.nextMatch,
|
oldNextMatch = w.nextMatch,
|
||||||
oldChildren = w.children,
|
oldChildren = w.children,
|
||||||
oldDependencies = w.dependencies,
|
oldDependencies = w.dependencies,
|
||||||
parseTree = w.store.parseText(mimeType,content);
|
parseTree = w.store.parseText(mimeType,content,{defaultType: "text/plain"});
|
||||||
w.output = oldOutput;
|
w.output = oldOutput;
|
||||||
w.source = oldSource;
|
w.source = oldSource;
|
||||||
w.nextMatch = oldNextMatch;
|
w.nextMatch = oldNextMatch;
|
||||||
|
@ -42,3 +42,14 @@ Which renders as:
|
|||||||
$$$.json
|
$$$.json
|
||||||
{"teapot": "brown","inside":["milk","sugar",23]}
|
{"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//.
|
||||||
|
$$$
|
||||||
|
Loading…
Reference in New Issue
Block a user