1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-08 16:30:26 +00:00

fix: blockmark widget name

This commit is contained in:
linonetwo 2024-10-02 20:53:36 +08:00
parent 8c20319b3a
commit b34221aadf
3 changed files with 6 additions and 4 deletions

View File

@ -73,4 +73,4 @@ BlockMarkWidget.prototype.refresh = function(changedTiddlers) {
}
};
exports["block-mark"] = BlockMarkWidget;
exports.blockmark = BlockMarkWidget;

View File

@ -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
<<wikitext-example-without-html """The block id widget is invisible, and is usually located at the end of the line. ID is here:<$block-mark id="BlockLevelLinksID1"/>
<<wikitext-example-without-html """The block id widget is invisible, and is usually located at the end of the line. ID is here:<$blockmark id="BlockLevelLinksID1"/>
[[Link to BlockLevelLinksID1|BlockMarkWidget^BlockLevelLinksID1]]
""">>
<<wikitext-example """You can refer to the block that is a line before the block id widget. Make sure block id widget itself is in a block (paragraph).
ID is here:<$block-mark id="BlockLevelLinksID2" previousSibling="yes"/>
ID is here:<$blockmark id="BlockLevelLinksID2" previousSibling="yes"/>
[[Link to BlockLevelLinksID2|BlockMarkWidget^BlockLevelLinksID2]]
""">>

View File

@ -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]].
<a href=<<qualify "##Top">>>Back to the top</a>
<h2 id=<<qualify "#Anchor-link-limitations">>>Limitations and things to watch out for</h2>