mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-04-30 09:11:15 -07:00
Fixes Text Parser being impacted by overrides to codeblock widget (#7844)
* fix: overriding codeblock widget should not impact text parser * fix: whitespace changes
This commit is contained in:
parent
e4bf7c5f44
commit
bf8b3cff03
2 changed files with 25 additions and 4 deletions
|
|
@ -14,10 +14,12 @@ The plain text parser processes blocks of source text into a degenerate parse tr
|
|||
|
||||
var TextParser = function(type,text,options) {
|
||||
this.tree = [{
|
||||
type: "codeblock",
|
||||
type: "genesis",
|
||||
attributes: {
|
||||
code: {type: "string", value: text},
|
||||
language: {type: "string", value: type}
|
||||
$type: {name: "$type", type: "string", value: "$codeblock"},
|
||||
code: {name: "code", type: "string", value: text},
|
||||
language: {name: "language", type: "string", value: type},
|
||||
$remappable: {name: "$remappable", type:"string", value: "no"}
|
||||
}
|
||||
}];
|
||||
this.source = text;
|
||||
|
|
@ -32,4 +34,3 @@ exports["text/css"] = TextParser;
|
|||
exports["application/x-tiddler-dictionary"] = TextParser;
|
||||
|
||||
})();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue