mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Removed references to global store object
This commit is contained in:
parent
7521207e45
commit
8ac4a8bf87
@ -69,7 +69,7 @@ Formatter.enclosedTextHelper = function(w) {
|
||||
};
|
||||
|
||||
Formatter.isExternalLink = function(link) {
|
||||
if(store.tiddlerExists(link) || store.isShadowTiddler(link)) {
|
||||
if(w.store.tiddlerExists(link) || w.store.isShadowTiddler(link)) {
|
||||
// Definitely not an external link
|
||||
return false;
|
||||
}
|
||||
@ -424,7 +424,7 @@ Formatter.formatters = [
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(w.autoLinkWikiWords || store.isShadowTiddler(w.matchText)) {
|
||||
if(w.autoLinkWikiWords || w.store.isShadowTiddler(w.matchText)) {
|
||||
var link = createTiddlyLink(w.output,w.matchText,false,null,w.isStatic,w.tiddler);
|
||||
w.outputText(link,w.matchStart,w.nextMatch);
|
||||
} else {
|
||||
|
@ -29,7 +29,8 @@ var Tiddler = require("./Tiddler.js").Tiddler,
|
||||
util = require("util");
|
||||
|
||||
// Construct a wikifier object around a Formatter() object
|
||||
var Wikifier = function(formatter) {
|
||||
var Wikifier = function(store,formatter) {
|
||||
this.store = store;
|
||||
this.formatter = formatter;
|
||||
this.autoLinkWikiWords = true;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user