Anchor
^do( Anchor, post name, sub-post name, [linkname] )^
Type: Macro
Purpose: Adds a link to a bookbark (subsection heading)
The Anchor macro constructs a hyperlink to the heading-anchor of sub-post inside the exported note, post.
The link text will be the display name of sub-post unless you supply a 3rd argument.
Hover below to reveal BoxPress code
^if($Container($2))^<a href="^if(!$Name(current)=$1)^^url($1)^^endIf^#id_^value($HTMLExportPath($2).replace("(\/|\.)","))^">^if(^value($3)^)^ $3^else^^value($Name("$2"))^^endIf^</a>^else^^do(_ERROR, " Broken link ")^^endIf^
Anchor sample
This is the markup that is rendered below
This is a link to a bookmark on the Explore: Anchor macro webpage: ^do(Anchor, "Explore: Anchor macro", "Target B")^ Here is another, but using the optional third arg: ^do(Anchor, "Explore: Anchor macro", "Target A", "I will take you to Target A")^.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
This is a link to a bookmark on the Explore: Anchor macro webpage: Target B
Here is another, but using the optional third arg: I will take you to Target A.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
For a more involved sample, see Explore: Anchor macro.