From b34221aadf3f677cedf47db4cc54bd5101342126 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Wed, 2 Oct 2024 20:53:36 +0800 Subject: [PATCH] fix: blockmark widget name --- core/modules/widgets/{block-mark.js => blockmark.js} | 2 +- .../widgets/{AnchorWidget.tid => BlockMarkWidget.tid} | 6 +++--- .../tw5.com/tiddlers/wikitext/Anchor Links using HTML.tid | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) rename core/modules/widgets/{block-mark.js => blockmark.js} (98%) rename editions/tw5.com/tiddlers/widgets/{AnchorWidget.tid => BlockMarkWidget.tid} (85%) diff --git a/core/modules/widgets/block-mark.js b/core/modules/widgets/blockmark.js similarity index 98% rename from core/modules/widgets/block-mark.js rename to core/modules/widgets/blockmark.js index 027c6b450..962e944f8 100644 --- a/core/modules/widgets/block-mark.js +++ b/core/modules/widgets/blockmark.js @@ -73,4 +73,4 @@ BlockMarkWidget.prototype.refresh = function(changedTiddlers) { } }; -exports["block-mark"] = BlockMarkWidget; +exports.blockmark = BlockMarkWidget; diff --git a/editions/tw5.com/tiddlers/widgets/AnchorWidget.tid b/editions/tw5.com/tiddlers/widgets/BlockMarkWidget.tid similarity index 85% rename from editions/tw5.com/tiddlers/widgets/AnchorWidget.tid rename to editions/tw5.com/tiddlers/widgets/BlockMarkWidget.tid index 2d6d50f15..00f584cae 100644 --- a/editions/tw5.com/tiddlers/widgets/AnchorWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/BlockMarkWidget.tid @@ -11,7 +11,7 @@ The block id widget make an block mark that can be focused and jump to. ! Content and Attributes -The content of the `<$block-mark>` widget is ignored. +The content of the `<$blockmark>` widget is ignored. |!Attribute |!Description | |id |The unique id for the block | @@ -21,14 +21,14 @@ See [[Block Level Links in WikiText^🤗→AddingIDforblock]] for WikiText synta ! Example -< +< [[Link to BlockLevelLinksID1|BlockMarkWidget^BlockLevelLinksID1]] """>> < +ID is here:<$blockmark id="BlockLevelLinksID2" previousSibling="yes"/> [[Link to BlockLevelLinksID2|BlockMarkWidget^BlockLevelLinksID2]] """>> diff --git a/editions/tw5.com/tiddlers/wikitext/Anchor Links using HTML.tid b/editions/tw5.com/tiddlers/wikitext/Anchor Links using HTML.tid index 9d69e37c1..3ce971a4b 100644 --- a/editions/tw5.com/tiddlers/wikitext/Anchor Links using HTML.tid +++ b/editions/tw5.com/tiddlers/wikitext/Anchor Links using HTML.tid @@ -63,6 +63,8 @@ The above example can be adapted to work for many situations in ~TiddlyWiki, suc Yes, it's that simple. BUT... in ~TiddlyWiki there are some small differences from standard HTML5 anchor links and some specific ~TiddlyWiki limitations. +To use WikiText style anchor links, see [[Block Level Links in WikiText]]. + >>Back to the top

>>Limitations and things to watch out for