diff --git a/js/Main.js b/js/Main.js index 95f003b3f..bf8a81c1c 100644 --- a/js/Main.js +++ b/js/Main.js @@ -90,5 +90,6 @@ navigators.install("a","StoryNavigator"); // Navigate to HelloThere navigators.navigateTo("HelloThere","StoryNavigator"); +navigators.navigateTo("TabAll","StoryNavigator"); })(); diff --git a/js/WikiStore.js b/js/WikiStore.js index 57908ea45..ab298b695 100755 --- a/js/WikiStore.js +++ b/js/WikiStore.js @@ -88,6 +88,14 @@ WikiStore.prototype.forEachTiddler = function(/* [sortField,[excludeTag,]]callba } }; +WikiStore.prototype.getTitles = function(sortField,excludeTag) { + var tiddlers = []; + this.forEachTiddler(sortField,excludeTag,function(title,tiddler) { + tiddlers.push(title); + }); + return tiddlers; +}; + WikiStore.prototype.parseTiddler = function(title) { var tiddler = this.getTiddler(title); if(tiddler) { diff --git a/js/WikiTextRenderer.js b/js/WikiTextRenderer.js index e47c1f159..14b6b1bc3 100644 --- a/js/WikiTextRenderer.js +++ b/js/WikiTextRenderer.js @@ -140,10 +140,61 @@ WikiTextRenderer.macros = { }, br: { handler: function(macroNode) { + macroNode.output.push({type: "br"}); } }, list: { handler: function(macroNode) { + var args = new ArgParser(macroNode.params,{defaultName:"type"}), + type = args.getValueByName("type","all"), + template = args.getValueByName("template",null), + emptyMessage = args.getValueByName("emptyMessage",null); + // Get the template to use (currently it's ignored though) + template = template ? this.store.getTiddlerText(template,null) : null; + template = template || "<>"; + // Get the tiddlers + var handler = WikiTextRenderer.macros.list.types[type]; + handler = handler || WikiTextRenderer.macros.list.types.all; + var tiddlers = handler.call(this); + // Render them as a list + var ul = {type: "ul", children: []}; + for(var t=0; tA caption above the tableLeftMiddleRightNorth WestNorthNorth EastWestHereEastSouth WestSouthSouth East \ No newline at end of file +
A caption above the table
LeftMiddleRight
North WestNorthNorth East
WestHereEast
South WestSouthSouth East
\ No newline at end of file diff --git a/test/wikitests/SecondTiddler.html b/test/wikitests/SecondTiddler.html index 8cb6a9c82..23966f8be 100644 --- a/test/wikitests/SecondTiddler.html +++ b/test/wikitests/SecondTiddler.html @@ -1 +1 @@ -

Heading

This is the second tiddler. It has a list:
And a macro invocation 2.6.5 and a custom class
\ No newline at end of file +

Heading

This is the second tiddler. It has a list:
And a macro invocation 2.6.5 and a custom class
\ No newline at end of file diff --git a/test/wikitests/SixthTiddler.html b/test/wikitests/SixthTiddler.html new file mode 100644 index 000000000..b9ef11a8d --- /dev/null +++ b/test/wikitests/SixthTiddler.html @@ -0,0 +1 @@ +SixthTiddler
SixthTiddler
11 February 2011
Jermolene

\ No newline at end of file diff --git a/test/wikitests/SixthTiddler.tid b/test/wikitests/SixthTiddler.tid new file mode 100644 index 000000000..529507114 --- /dev/null +++ b/test/wikitests/SixthTiddler.tid @@ -0,0 +1,9 @@ +title: SixthTiddler +modified: 20110211110621 +modifier: Jermolene + +<> +<> +<> +<> +<> diff --git a/test/wikitests/SixthTiddler.txt b/test/wikitests/SixthTiddler.txt new file mode 100644 index 000000000..8a78b69f9 --- /dev/null +++ b/test/wikitests/SixthTiddler.txt @@ -0,0 +1 @@ +SixthTiddlerSixthTiddler11 February 2011JermoleneFifth TiddlerFirstTiddlerFourth TiddlerSecondTiddlerSixthTiddlerThirdTiddler \ No newline at end of file diff --git a/tiddlywiki5/styles.css b/tiddlywiki5/styles.css index 844ece607..813ec90ae 100644 --- a/tiddlywiki5/styles.css +++ b/tiddlywiki5/styles.css @@ -16,8 +16,6 @@ article { font-weight: bold; font-size: 62px; line-height: 81px; - margin-top: 27px; - margin-bottom: 54px; } h1 { font-size: 33px; diff --git a/tiddlywiki5/tiddlers/HelloThere.tid b/tiddlywiki5/tiddlers/HelloThere.tid index 8b1ec1b1f..9c3784d71 100644 --- a/tiddlywiki5/tiddlers/HelloThere.tid +++ b/tiddlywiki5/tiddlers/HelloThere.tid @@ -8,3 +8,5 @@ TiddlyWiki is a unique [[wiki|WikiWikiWeb]] that people [[love using|Raves]] to TiddlyWiki is written in [[HTML]], [[CSS]] and JavaScript to run on any reasonably modern [[browser|Browsers]] without needing any ServerSide logic. It allows anyone to create personal SelfContained hypertext documents that can be published to a WebServer, sent by email, stored in a DropBox or kept on a USB thumb drive to make a WikiOnAStick. Because it doesn't need to be installed and configured it makes a great GuerillaWiki. This is revision <> of TiddlyWiki, and is published under an OpenSourceLicense. Unlike most wikis, TiddlyWiki doesn't directly support group collaboration; it is a wiki in the sense of elevating linking be a part of the punctuation of writing. You can easily publish a TiddlyWiki you have created by placing the single file on a web server (for instance the homepage hosting provided by many ISPs). If you need full group collaboration features, there are several HostedOptions to choose from. + +<>