Expand description
Who opens a link.
Installed once at boot like the highlighter, and read at click. Without it a
link goes to App::open_url. A #fragment link reaches neither: it names
a heading of the document it is in — see heading.
Functions§
- heading
- The block of the heading
fragment(without its#) names indoc. A slug already taken by an earlier heading gets-1,-2, … as on GitHub. The fragment is compared as written: no percent-decoding. - slug
- The anchor GitHub gives a heading: lowercased, punctuation dropped but for
-and_, each space a-.
Type Aliases§
- Link
Handler - Opens a link a reader clicked: an inline link or a bookmark card.
baseis the document’scrate::render::Editing::base; the URL is as written.