Download for PHP  R515 (beta)
Welcome » Links » Anchors
Expand

Input document

.

Upload document:

Anchors

Full reference: Anchors
Anchors are spots in a document that can be linked to directly. For example, you can put an anchor before some specific quote and link back to it later. Anchors are created using the same syntax that’s used to address them but:

  1. There must be no caption given;
  2. Anchor must be put on a separate line (unless inline anchors mode is enabled, which is not in current documentation).

The above line defines an anchor named «example» and this is a link to that anchor.

The above line this time is a simple link because even thoough it’s put on a separate line it has a caption «caption».

If inline anchors mode is enabled you’d see this as an anchor too, but now it’s a link.

As you can see, anchor name can contain spaces and still be addressable.

When linking you can use Link blending: «space+s. Like non-existing links, undefined anchors are highlighted – but only for current page: not highlighted.

Headings

There’s a natural way to assign Headings specific anchors rather than use autogenerated one (which in most cases is its first word) – simply define an anchor right on the heading’s line:

Some heading caption

Compare it with:

Some heading caption

Unlike normal block anchors it’s impossible to have spaces in a heading’s anchor because they separate link caption from its URL:

spaces ← this is a link

heading spaces ← this is too

However, you can always define a block anchor after corresponding heading and link to it:

Anchor below

Languages