Introduction
The block id widget make an block mark that can be focused and jump to.
Content and Attributes
The content of the <$blockmark> widget is ignored.
| Attribute | Description |
|---|---|
| id | The unique id for the block |
| previousSibling | yes means the block is before this node, in parent node's children list, else it means the block is this node's direct parent node. |
See Block Level Links in WikiText for WikiText syntax of block ID.
Example
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]]
That renders as:
The block id widget is invisible, and is usually located at the end of the line. ID is here:
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:<$blockmark id="BlockLevelLinksID2" previousSibling="yes"/>
[[Link to BlockLevelLinksID2|BlockMarkWidget^BlockLevelLinksID2]]
That renders as:
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:
... and the underlying HTML is:
<p>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).</p><p>ID is here:<span class="tc-block-mark" data-block-mark-id="BlockLevelLinksID2" data-block-mark-previous-sibling="true" data-block-mark-title="BlockMarkWidget" id="BlockMarkWidget-BlockLevelLinksID2"></span></p><p><a class="tc-tiddlylink tc-tiddlylink-resolves" href="BlockMarkWidget-BlockLevelLinksID2.html">Link to BlockLevelLinksID2</a>
</p>