mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-31 18:08:03 +00:00
Added encoding of tiddler filenames
This commit is contained in:
2
ginsu.js
2
ginsu.js
@@ -21,7 +21,7 @@ var tiddlers = tiddlyWikiInput.parseTiddlyWiki(tiddlywikidoc);
|
||||
var recipe = [];
|
||||
for(var t=0; t<tiddlers.length; t++) {
|
||||
var tid = new tiddler.Tiddler(tiddlers[t]);
|
||||
var filename = tid.fields.title + ".tid";
|
||||
var filename = encodeURIComponent(tid.fields.title) + ".tid";
|
||||
fs.writeFileSync(path.join(outputdir,filename),tiddlerOutput.outputTiddler(tid));
|
||||
recipe.push("tiddler: " + filename + "\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user