1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-07-20 10:52:51 +00:00

Remove function wrapper for all plugins

This commit is contained in:
Leilei332 2025-03-16 13:21:20 +08:00
parent 06adaf3331
commit be129c0956
76 changed files with 5 additions and 240 deletions

View File

@ -6,7 +6,6 @@ module-type: tiddlerdeserializer
BibTeX file deserializer BibTeX file deserializer
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -46,5 +45,3 @@ exports["application/x-bibtex"] = function(text,fields) {
// Return the output tiddlers // Return the output tiddlers
return results; return results;
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: info
Initialise $:/info/browser tiddlers Initialise $:/info/browser tiddlers
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -78,5 +77,3 @@ exports.getInfoTiddlerFields = function() {
} }
return infoTiddlerFields; return infoTiddlerFields;
}; };
})();

View File

@ -7,8 +7,6 @@ Startup code injected as raw markup
\*/ \*/
(function() {
// Need to initialise these because we run before bootprefix.js and boot.js // Need to initialise these because we run before bootprefix.js and boot.js
$tw = window.$tw || Object.create(null); $tw = window.$tw || Object.create(null);
$tw.hooks = $tw.hooks || { names: {}}; $tw.hooks = $tw.hooks || { names: {}};
@ -89,5 +87,3 @@ function hookBootTiddlersLoaded() {
text: $tw.utils.stringifyList(log) text: $tw.utils.stringifyList(log)
}); });
} }
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Startup initialisation Startup initialisation
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -135,5 +134,3 @@ exports.startup = function() {
}); });
}); });
}; };
})();

View File

@ -7,8 +7,6 @@ Utility methods for browser-storage plugin
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
"use strict"; "use strict";
@ -109,5 +107,3 @@ BrowserStorageUtil.prototype.clearLocalStorage = function() {
}; };
exports.BrowserStorageUtil = BrowserStorageUtil; exports.BrowserStorageUtil = BrowserStorageUtil;
})();

View File

@ -8,7 +8,6 @@ Module to deserialize tiddlers from an old school TiddlyWiki recipe file.
The idea is to process the recipe file recursively, loading tiddlers into the main store using synchronous file operations. The tiddlers have their titles prefixed with the associated marker in curly brackets ("{shadow}", "{tiddler}" etc). The idea is to process the recipe file recursively, loading tiddlers into the main store using synchronous file operations. The tiddlers have their titles prefixed with the associated marker in curly brackets ("{shadow}", "{tiddler}" etc).
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -80,5 +79,3 @@ exports["text/vnd.tiddlywiki2-recipe"] = function(text,fields) {
}); });
return tiddlers; return tiddlers;
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: widget
Edit-codemirror widget Edit-codemirror widget
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -16,5 +15,3 @@ var editTextWidgetFactory = require("$:/core/modules/editor/factory.js").editTex
CodeMirrorEngine = require("$:/plugins/tiddlywiki/codemirror/engine.js").CodeMirrorEngine; CodeMirrorEngine = require("$:/plugins/tiddlywiki/codemirror/engine.js").CodeMirrorEngine;
exports["edit-codemirror"] = editTextWidgetFactory(CodeMirrorEngine,CodeMirrorEngine); exports["edit-codemirror"] = editTextWidgetFactory(CodeMirrorEngine,CodeMirrorEngine);
})();

View File

@ -6,7 +6,6 @@ module-type: library
Text editor engine based on a CodeMirror instance Text editor engine based on a CodeMirror instance
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -316,5 +315,3 @@ CodeMirrorEngine.prototype.executeTextOperation = function(operation) {
}; };
exports.CodeMirrorEngine = $tw.browser ? CodeMirrorEngine : require("$:/core/modules/editor/engines/simple.js").SimpleEngine; exports.CodeMirrorEngine = $tw.browser ? CodeMirrorEngine : require("$:/core/modules/editor/engines/simple.js").SimpleEngine;
})();

View File

@ -6,7 +6,6 @@ module-type: global
Confetti manager Confetti manager
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -52,5 +51,3 @@ ConfettiManager.prototype.reset = function () {
}; };
exports.ConfettiManager = ConfettiManager; exports.ConfettiManager = ConfettiManager;
})();

View File

@ -6,7 +6,6 @@ module-type: widget
Confetti widget Confetti widget
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -63,5 +62,3 @@ ConfettiWidget.prototype.refresh = function(changedTiddlers) {
}; };
exports.confetti = ConfettiWidget; exports.confetti = ConfettiWidget;
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Setup the root widget event handlers Setup the root widget event handlers
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -59,5 +58,3 @@ exports.startup = function() {
$tw.confettiManager.reset(); $tw.confettiManager.reset();
}); });
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: widget
An override of the raw widget that blocks raw content until the user has consented to accept cookies An override of the raw widget that blocks raw content until the user has consented to accept cookies
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -65,5 +64,3 @@ RawWidget.prototype.refresh = function(changedTiddlers) {
}; };
exports.raw = RawWidget; exports.raw = RawWidget;
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Startup initialisation Startup initialisation
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -103,5 +102,3 @@ exports.startup = function() {
}); });
} }
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: widget
Dynannotate widget Dynannotate widget
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -433,5 +432,3 @@ DynannotateWidget.prototype.refresh = function(changedTiddlers) {
}; };
exports.dynannotate = DynannotateWidget; exports.dynannotate = DynannotateWidget;
})();

View File

@ -6,7 +6,6 @@ module-type: library
Manages the element spotlight effect Manages the element spotlight effect
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -132,5 +131,3 @@ ElementSpotlight.prototype.shineSpotlight = function(selectors) {
}; };
exports.ElementSpotlight = ElementSpotlight; exports.ElementSpotlight = ElementSpotlight;
})();

View File

@ -6,7 +6,6 @@ module-type: library
Legacy version of the dyannotate background daemon to track the selection Legacy version of the dyannotate background daemon to track the selection
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -100,5 +99,3 @@ LegacySelectionTracker.prototype.findSelectionContainer = function findSelection
}; };
exports.LegacySelectionTracker = LegacySelectionTracker; exports.LegacySelectionTracker = LegacySelectionTracker;
})();

View File

@ -6,7 +6,6 @@ module-type: library
Background daemon to track the selection Background daemon to track the selection
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -167,5 +166,3 @@ SelectionTracker.prototype.performSelectionActions = function(chunks,variables,a
}; };
exports.SelectionTracker = SelectionTracker; exports.SelectionTracker = SelectionTracker;
})();

View File

@ -8,7 +8,6 @@ module-type: startup
Startup the dyannotate background daemon to track the selection Startup the dyannotate background daemon to track the selection
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -59,5 +58,3 @@ exports.startup = function() {
}); });
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: library
Structure for modelling mapping between a string and its representation in the DOM Structure for modelling mapping between a string and its representation in the DOM
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -178,5 +177,3 @@ exports.TextMap.prototype.extractContext = function(startContainer,startOffset,t
suffix: this.string.slice(startPos + text.length, Math.min(startPos + text.length + PREFIX_SUFFIX_LENGTH, this.string.length)) suffix: this.string.slice(startPos + text.length, Math.min(startPos + text.length + PREFIX_SUFFIX_LENGTH, this.string.length))
}; };
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Zoom everything Zoom everything
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -263,5 +262,3 @@ function saveViewportDimensions() {
} }
} }
} }
})();

View File

@ -8,7 +8,6 @@ ENEX file deserializer
For details see: https://blog.evernote.com/tech/2013/08/08/evernote-export-format-enex/ For details see: https://blog.evernote.com/tech/2013/08/08/evernote-export-format-enex/
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -134,6 +133,3 @@ function fixAttachmentReference(contentNode, md5Hash, mimeType, name) {
mediaNode.parentNode.replaceChild($tw.utils.domMaker("p", {text: "[["+ name + "]]"}), mediaNode); mediaNode.parentNode.replaceChild($tw.utils.domMaker("p", {text: "[["+ name + "]]"}), mediaNode);
} }
} }
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Startup initialisation Startup initialisation
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -123,6 +122,3 @@ function test_makePathRelative() {
test("\\\\SHARE\\Users\\me\\something\\file.png","/SHARE/Users/me/somethingelse/index.html","../something/file.png",{isWindows: true}); test("\\\\SHARE\\Users\\me\\something\\file.png","/SHARE/Users/me/somethingelse/index.html","../something/file.png",{isWindows: true});
test("\\\\SHARE\\Users\\me\\something\\file.png","/C:/Users/me/something/index.html","/SHARE/Users/me/something/file.png",{isWindows: true}); test("\\\\SHARE\\Users\\me\\something\\file.png","/C:/Users/me/something/index.html","/SHARE/Users/me/something/file.png",{isWindows: true});
} }
})();

View File

@ -6,7 +6,6 @@ module-type: syncadaptor
A sync adaptor module for synchronising with the local filesystem via node.js APIs A sync adaptor module for synchronising with the local filesystem via node.js APIs
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -167,5 +166,3 @@ FileSystemAdaptor.prototype.removeTiddlerFileInfo = function(title) {
if(fs) { if(fs) {
exports.adaptorClass = FileSystemAdaptor; exports.adaptorClass = FileSystemAdaptor;
} }
})();

View File

@ -6,7 +6,6 @@ module-type: widget
A copy of the core text widget under a different name A copy of the core text widget under a different name
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -58,5 +57,3 @@ PlainTextNodeWidget.prototype.refresh = function(changedTiddlers) {
}; };
exports["plain-text"] = PlainTextNodeWidget; exports["plain-text"] = PlainTextNodeWidget;
})();

View File

@ -6,7 +6,6 @@ module-type: widget
An override of the core text widget that automatically linkifies the text An override of the core text widget that automatically linkifies the text
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -164,5 +163,3 @@ TextNodeWidget.prototype.refresh = function(changedTiddlers) {
}; };
exports.text = TextNodeWidget; exports.text = TextNodeWidget;
})();

View File

@ -6,7 +6,6 @@ module-type: library
Geospatial utilities Geospatial utilities
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -37,5 +36,3 @@ exports.parsePoint = function(str) {
// Return the string now we know it is a valid GeoJSON Point // Return the string now we know it is a valid GeoJSON Point
return json; return json;
} }
})();

View File

@ -6,7 +6,6 @@ module-type: filteroperator
Filter operators for geospatial helpers Filter operators for geospatial helpers
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -20,5 +19,3 @@ exports.geopoint = function(source,operator,options) {
alt = $tw.utils.parseNumber(operator.operands[2] || "0"); alt = $tw.utils.parseNumber(operator.operands[2] || "0");
return [JSON.stringify(turf.point([long,lat,alt]))]; return [JSON.stringify(turf.point([long,lat,alt]))];
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: filteroperator
Filter operators for geospatial lookup Filter operators for geospatial lookup
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -41,5 +40,3 @@ function getPolygonsContainingPoint(featureCollection,point) {
}); });
return properties; return properties;
} }
})();

View File

@ -6,7 +6,6 @@ module-type: filteroperator
Filter operators for geospatial measurement Filter operators for geospatial measurement
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -50,5 +49,3 @@ exports.geonearestpoint = function(source,operator,options) {
return []; return [];
} }
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: filteroperator
Filter operators for open location code conversions Filter operators for open location code conversions
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -51,5 +50,3 @@ exports["olc-encode"] = function(source,operator,options) {
} }
return [olc]; return [olc];
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: filteroperator
Filter operators for geospatial transformation Filter operators for geospatial transformation
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -83,6 +82,3 @@ function geojsonOp(geojsonObjects, op) {
}); });
return turf.featureCollection(resultFeatures); return turf.featureCollection(resultFeatures);
} }
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Geospatial initialisation Geospatial initialisation
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -74,5 +73,3 @@ exports.startup = function() {
} }
}); });
}; };
})();

View File

@ -6,12 +6,9 @@ module-type: widget
geobaselayer widget to represent a base layer for a geomap widget. Clone of the data widget geobaselayer widget to represent a base layer for a geomap widget. Clone of the data widget
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
"use strict"; "use strict";
exports.geobaselayer = require("$:/core/modules/widgets/data.js").data; exports.geobaselayer = require("$:/core/modules/widgets/data.js").data;
})();

View File

@ -6,12 +6,9 @@ module-type: widget
geolayer widget to represent a layer for a geomap widget. Clone of the data widget geolayer widget to represent a layer for a geomap widget. Clone of the data widget
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
"use strict"; "use strict";
exports.geolayer = require("$:/core/modules/widgets/data.js").data; exports.geolayer = require("$:/core/modules/widgets/data.js").data;
})();

View File

@ -6,7 +6,6 @@ module-type: widget
Leaflet map widget Leaflet map widget
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -351,6 +350,3 @@ GeomapWidget.prototype.refresh = function(changedTiddlers) {
}; };
exports.geomap = GeomapWidget; exports.geomap = GeomapWidget;
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Runs Google Analytics with the measurement ID in the tiddler `$:/GoogleAnalyticsMeasurementID` Runs Google Analytics with the measurement ID in the tiddler `$:/GoogleAnalyticsMeasurementID`
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -55,7 +54,3 @@ exports.startup = function() {
} }
} }
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: widget
Wraps up the fenced code blocks parser for highlight and use in TiddlyWiki5 Wraps up the fenced code blocks parser for highlight and use in TiddlyWiki5
\*/ \*/
(function() {
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -47,5 +46,3 @@ if(hljs.getLanguage !== undefined) {
} }
}; };
} }
})();

View File

@ -6,12 +6,9 @@ module-type: widget
Anchor widget to represent an innerwiki graphical anchor. Clone of the data widget Anchor widget to represent an innerwiki graphical anchor. Clone of the data widget
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
"use strict"; "use strict";
exports.anchor = require("$:/core/modules/widgets/data.js").data; exports.anchor = require("$:/core/modules/widgets/data.js").data;
})();

View File

@ -6,7 +6,6 @@ module-type: widget
Widget to display an innerwiki in an iframe Widget to display an innerwiki in an iframe
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -347,5 +346,3 @@ InnerWikiWidget.prototype.saveScreenshot = function(options,callback) {
}; };
exports.innerwiki = InnerWikiWidget; exports.innerwiki = InnerWikiWidget;
})();

View File

@ -6,7 +6,6 @@ module-type: command
Commands to render tiddlers identified by a filter and save any screenshots identified by <$innerwiki> widgets Commands to render tiddlers identified by a filter and save any screenshots identified by <$innerwiki> widgets
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -79,5 +78,3 @@ Command.prototype.findInnerWikiWidgets = function(widgetNode) {
}; };
exports.Command = Command; exports.Command = Command;
})();

View File

@ -6,7 +6,6 @@ module-type: library
The main module of the Jasmine test plugin for TiddlyWiki5 The main module of the Jasmine test plugin for TiddlyWiki5
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: true */ /*global $tw: true */
@ -157,5 +156,3 @@ exports.runTests = function(callback,specFilter) {
nodeJasmineWrapper.execute(null,specFilter); nodeJasmineWrapper.execute(null,specFilter);
} }
}; };
})();

View File

@ -6,7 +6,6 @@ tags: [[$:/tags/test-spec]]
Tests the wiki based tests Tests the wiki based tests
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -99,5 +98,3 @@ describe("Wiki-based tests", function() {
} }
}); });
})();

View File

@ -6,7 +6,6 @@ module-type: startup
The main module of the Jasmine test plugin for TiddlyWiki5 The main module of the Jasmine test plugin for TiddlyWiki5
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: true */ /*global $tw: true */
@ -34,5 +33,3 @@ if($tw.browser) {
// We make this check after the commands are run. // We make this check after the commands are run.
exports.after = ["commands"]; exports.after = ["commands"];
} }
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Setup the root widget event handlers Setup the root widget event handlers
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -100,5 +99,3 @@ function downloadZipFile(title,filename) {
document.body.removeChild(link); document.body.removeChild(link);
} }
} }
})();

View File

@ -17,7 +17,6 @@ This wikiparser can be modified using the rules eg:
``` ```
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -65,5 +64,3 @@ exports.parse = function() {
} }
}]; }];
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: widget
Wrapper for `katex.min.js` that provides a `<$latex>` widget. It is also available under the alias `<$katex>` Wrapper for `katex.min.js` that provides a `<$latex>` widget. It is also available under the alias `<$katex>`
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -94,6 +93,3 @@ KaTeXWidget.prototype.refresh = function(changedTiddlers) {
exports.latex = KaTeXWidget; exports.latex = KaTeXWidget;
exports.katex = KaTeXWidget; exports.katex = KaTeXWidget;
})();

View File

@ -5,7 +5,6 @@ module-type: library
Based on markdown-it-katex v2.0.0 by @waylonflinn https://github.com/waylonflinn/markdown-it-katex | MIT License Based on markdown-it-katex v2.0.0 by @waylonflinn https://github.com/waylonflinn/markdown-it-katex | MIT License
\*/ \*/
(function(){
/* Process inline math */ /* Process inline math */
/* /*
Like markdown-it-simplemath, this is a stripped down, simplified version of: Like markdown-it-simplemath, this is a stripped down, simplified version of:
@ -167,4 +166,3 @@ module.exports = function math_plugin(md, options) {
md.inline.ruler.after('escape', 'math_inline', math_inline); md.inline.ruler.after('escape', 'math_inline', math_inline);
md.inline.ruler.after('escape', 'math_inline_block', math_inline_block); md.inline.ruler.after('escape', 'math_inline_block', math_inline_block);
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: library
Wraps up the markdown-it parser for use as a Parser in TiddlyWiki Wraps up the markdown-it parser for use as a Parser in TiddlyWiki
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -535,5 +534,3 @@ module.exports = function tiddlyWikiPlugin(markdown,options) {
md.core.ruler.disable('text_join'); md.core.ruler.disable('text_join');
md.core.ruler.push('wikify',wikify); md.core.ruler.push('wikify',wikify);
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: parser
Wraps up the markdown-it parser for use as a Parser in TiddlyWiki Wraps up the markdown-it parser for use as a Parser in TiddlyWiki
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -261,4 +260,3 @@ function MarkdownParser(type,text,options) {
exports["text/markdown"] = MarkdownParser; exports["text/markdown"] = MarkdownParser;
exports["text/x-markdown"] = MarkdownParser; exports["text/x-markdown"] = MarkdownParser;
})();

View File

@ -6,7 +6,6 @@ module-type: library
A simple HTTP-over-window.postMessage implementation of a standard TiddlyWeb-compatible server. It uses real HTTP to load the individual tiddler JSON files. A simple HTTP-over-window.postMessage implementation of a standard TiddlyWeb-compatible server. It uses real HTTP to load the individual tiddler JSON files.
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -86,5 +85,3 @@ function httpGet(url,callback) {
}; };
http.send(); http.send();
} }
})();

View File

@ -6,7 +6,6 @@ module-type: widget
barcodereader widget for reading barcodes barcodereader widget for reading barcodes
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -86,5 +85,3 @@ BarCodeReaderWidget.prototype.refresh = function(changedTiddlers) {
}; };
exports.barcodereader = BarCodeReaderWidget; exports.barcodereader = BarCodeReaderWidget;
})();

View File

@ -6,7 +6,6 @@ module-type: macro
Macro to convert a string into a QR Code Macro to convert a string into a QR Code
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -69,6 +68,3 @@ function generateQrCode(text,options) {
margin = parseInt((size - qr.getModuleCount() * cellsize) / 2); margin = parseInt((size - qr.getModuleCount() * cellsize) / 2);
return qr.createImgTag(cellsize, margin, size); return qr.createImgTag(cellsize, margin, size);
} }
})();

View File

@ -6,7 +6,6 @@ module-type: library
Components of a railroad diagram. Components of a railroad diagram.
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -287,5 +286,3 @@ exports.components = {
Terminal: Terminal, Terminal: Terminal,
Transclusion: Transclusion Transclusion: Transclusion
}; };
})();

View File

@ -33,7 +33,6 @@ pragmas:
\end single|double|none \end single|double|none
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -448,5 +447,3 @@ Parser.prototype.readPragma = function(source,pos) {
/////////////////////////// Exports /////////////////////////// Exports
exports.parser = Parser; exports.parser = Parser;
})();

View File

@ -6,7 +6,6 @@ module-type: parser
This parser wraps unadorned railroad syntax into a railroad widget This parser wraps unadorned railroad syntax into a railroad widget
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -23,6 +22,3 @@ console.log(text);
}; };
exports["text/vnd.tiddlywiki.railroad"] = RailroadParser; exports["text/vnd.tiddlywiki.railroad"] = RailroadParser;
})();

View File

@ -6,7 +6,6 @@ module-type: widget
Wrapper for `railroad-diagrams.js` that provides a `<$railroad>` widget. Wrapper for `railroad-diagrams.js` that provides a `<$railroad>` widget.
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -143,5 +142,3 @@ RailroadWidget.prototype.dispatchLink = function(to,event) {
}; };
exports.railroad = RailroadWidget; exports.railroad = RailroadWidget;
})();

View File

@ -6,7 +6,6 @@ module-type: startup
A startup module to download every changed tiddler as a JSON file A startup module to download every changed tiddler as a JSON file
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -149,5 +148,3 @@ function saveTiddlerFile(tiddler,options) {
link.click(); link.click();
document.body.removeChild(link); document.body.removeChild(link);
} }
})();

View File

@ -6,7 +6,6 @@ module-type: library
Read tiddlers from the browser location hash Read tiddlers from the browser location hash
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -108,5 +107,3 @@ function removeWarningBanner() {
warningWrapper.parentNode.removeChild(warningWrapper); warningWrapper.parentNode.removeChild(warningWrapper);
stylesWrapper.parentNode.removeChild(stylesWrapper); stylesWrapper.parentNode.removeChild(stylesWrapper);
} }
})();

View File

@ -6,7 +6,6 @@ module-type: storyview
Keeps tiddlers in a stack Keeps tiddlers in a stack
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -84,5 +83,3 @@ StackedListView.prototype.remove = function(widget) {
}; };
exports.stacked = StackedListView; exports.stacked = StackedListView;
})();

View File

@ -6,7 +6,6 @@ module-type: filteroperator
Filter operator returning all the descendents of a tiddler listed in the "list" field Filter operator returning all the descendents of a tiddler listed in the "list" field
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -34,5 +33,3 @@ exports["list-children"] = function(source,operator,options) {
}); });
return Object.keys(children); return Object.keys(children);
}; };
})();

View File

@ -16,7 +16,6 @@ var slicer = new textSlicer.Slicer(doc,{
}); });
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -474,5 +473,3 @@ Slicer.prototype.makeTitle = function(prefix) {
}; };
exports.Slicer = Slicer; exports.Slicer = Slicer;
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Setup the root widget event handlers Setup the root widget event handlers
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -47,5 +46,3 @@ exports.startup = function() {
}); });
}); });
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: syncadaptor
A sync adaptor module for synchronising with TiddlyWeb compatible servers A sync adaptor module for synchronising with TiddlyWeb compatible servers
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -375,5 +374,3 @@ TiddlyWebAdaptor.prototype.parseEtag = function(etag) {
if($tw.browser && document.location.protocol.substr(0,4) === "http" ) { if($tw.browser && document.location.protocol.substr(0,4) === "http" ) {
exports.adaptorClass = TiddlyWebAdaptor; exports.adaptorClass = TiddlyWebAdaptor;
} }
})();

View File

@ -6,7 +6,6 @@ module-type: widget
Transclude widget Transclude widget
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -191,5 +190,3 @@ TranscludeWidget.prototype.refresh = function(changedTiddlers) {
}; };
exports.classictransclude = TranscludeWidget; exports.classictransclude = TranscludeWidget;
})();

View File

@ -3,7 +3,6 @@ title: $:/macros/tiddlywiki/entry.js
type: application/javascript type: application/javascript
module-type: macro module-type: macro
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
"use strict"; "use strict";
@ -27,4 +26,3 @@ exports.run = function(key,map) {
return ""; return "";
} }
} }
})();

View File

@ -3,7 +3,6 @@ title: $:/macros/classic/macroadapter.js
type: application/javascript type: application/javascript
module-type: module module-type: module
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -94,4 +93,3 @@ var paramadapter = {
exports.name = 'macroadapter'; exports.name = 'macroadapter';
exports.namedapter = namedapter; exports.namedapter = namedapter;
exports.paramadapter = paramadapter; exports.paramadapter = paramadapter;
})();

View File

@ -28,7 +28,6 @@ HTML nodes look like this:
` `
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -196,5 +195,3 @@ WikiTextParser.prototype.subWikifyTerm = function(output,terminatorRegExp) {
}; };
exports["text/x-tiddlywiki"] = WikiTextParser; exports["text/x-tiddlywiki"] = WikiTextParser;
})();

View File

@ -6,7 +6,6 @@ module-type: module
Rule modules for the wikitext parser Rule modules for the wikitext parser
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -824,5 +823,3 @@ var rules = [
]; ];
exports.rules = rules; exports.rules = rules;
})();

View File

@ -6,7 +6,6 @@ module-type: utils
Utility class for manipulating Twitter archives Utility class for manipulating Twitter archives
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -315,5 +314,3 @@ function arrayBufferToBase64(arrayBuffer) {
exports.TwitterArchivist = TwitterArchivist; exports.TwitterArchivist = TwitterArchivist;
exports.TwitterArchivistSourceNodeJs = TwitterArchivistSourceNodeJs; exports.TwitterArchivistSourceNodeJs = TwitterArchivistSourceNodeJs;
exports.TwitterArchivistSourceBrowser = TwitterArchivistSourceBrowser; exports.TwitterArchivistSourceBrowser = TwitterArchivistSourceBrowser;
})();

View File

@ -6,7 +6,6 @@ module-type: command
Read tiddlers from an unzipped Twitter archive Read tiddlers from an unzipped Twitter archive
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -49,5 +48,3 @@ Command.prototype.execute = function() {
}; };
exports.Command = Command; exports.Command = Command;
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Twitter initialisation Twitter initialisation
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -34,5 +33,3 @@ exports.startup = function() {
}); });
}); });
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Startup module for configuring the upgrade plugin Startup module for configuring the upgrade plugin
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -22,5 +21,3 @@ exports.startup = function() {
$tw.config.usePasswordVault = true; $tw.config.usePasswordVault = true;
$tw.config.disableAutoSave = true; $tw.config.disableAutoSave = true;
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: tiddlerdeserializer
XLSX file deserializer XLSX file deserializer
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -26,5 +25,3 @@ exports["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] = f
// Return the output tiddlers // Return the output tiddlers
return importer.getResults(); return importer.getResults();
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: library
Class to import an Excel file Class to import an Excel file
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -201,5 +200,3 @@ XLSXImporter.prototype.findColumns = function(sheet,sheetSize) {
}; };
exports.XLSXImporter = XLSXImporter; exports.XLSXImporter = XLSXImporter;
})();

View File

@ -6,7 +6,6 @@ module-type: startup
Initialisation Initialisation
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -25,5 +24,3 @@ exports.startup = function() {
logger.alert("The plugin 'xlsx-utils' requires the 'jszip' plugin to be installed"); logger.alert("The plugin 'xlsx-utils' requires the 'jszip' plugin to be installed");
} }
}; };
})();

View File

@ -6,7 +6,6 @@ module-type: command
Command to import an xlsx file Command to import an xlsx file
\*/ \*/
(function(){
/*jslint node: true, browser: true */ /*jslint node: true, browser: true */
/*global $tw: false */ /*global $tw: false */
@ -42,5 +41,3 @@ Command.prototype.execute = function() {
}; };
exports.Command = Command; exports.Command = Command;
})();